Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Change log level at runtime
#3

[eluser]Unknown[/eluser]
I figured it out:
Code:
$this->config->set_item('log_threshold', $level);

$LOG =& load_class('Log');
$LOG->CI_Log();  // call constructor to reread the config
You must set the new trashold in the config and then call the constructor from the LOG object to reread the value from the config object.

Thanks InsiteFX for the clue with the LOG class.

Best regards,
Thomas


Messages In This Thread
[SOLVED] Change log level at runtime - by El Forum - 01-25-2011, 06:48 PM
[SOLVED] Change log level at runtime - by El Forum - 01-25-2011, 08:52 PM
[SOLVED] Change log level at runtime - by El Forum - 01-26-2011, 01:12 AM
[SOLVED] Change log level at runtime - by El Forum - 01-26-2011, 02:16 AM
[SOLVED] Change log level at runtime - by El Forum - 09-28-2012, 01:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB