Welcome Guest, Not a member yet? Register   Sign In
Change log_treshold at runtime
#4

[eluser]PhilTem[/eluser]
Ah, dang, right. The Log-class sets the log-threshold on constructing i.e. very early in the page creation process. My bad, sorry for posting that nonsense. You may vote my previous post down Big Grin
And CI_Log does not have a method to initialize the class either just like other CI libs have. You may want to extend CI_Log with MY_Log and either add a initialize method or change the attribute
Code:
protected $_threshold = 1;

to
Code:
public $_threshold = 1;

which then can be changed using
Code:
$this->log->_threshold = 4;


Messages In This Thread
Change log_treshold at runtime - by El Forum - 11-29-2012, 05:30 AM
Change log_treshold at runtime - by El Forum - 11-29-2012, 06:09 AM
Change log_treshold at runtime - by El Forum - 11-29-2012, 06:27 AM
Change log_treshold at runtime - by El Forum - 11-29-2012, 07:43 AM
Change log_treshold at runtime - by El Forum - 11-29-2012, 03:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB