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

[eluser]Unknown[/eluser]
Hello,

I want to change the log level to a value read from the database. I try
Code:
$this->config->set_item('log_treshold', $value);
but it doesnt work.
Code:
echo $this->config->item('log_treshold')
reports the new value but CI ignores it.

Do I something wrong? Can someone help me?

Best regards,
Thomas

Edit:
After some more tests it seems that only log level 0 is working. If the log_treshold is set to 0 there is no more logging. It is set to any other number CI logs all levels.


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