Welcome Guest, Not a member yet? Register   Sign In
custom logging threshold in not working
#1

[eluser]Unknown[/eluser]
I want to be able to log only Info and Error (and not debug)

I found this one that looked promising:
https://github.com/EllisLab/CodeIgniter/...-Threshold

However when I put
$config['log_threshold'] = array(1, 3);
nothing is logged.
I know it is not a general logging problem (permissions etc) because when I put $config['log_threshold'] = 3;
everything works perfectly

Anyone encountered this issue?
#2

[eluser]www.sblog.in[/eluser]
might be the problem with below condition

Code:
if ( ! isset($this->_levels[$level])
  OR ($this->_levels[$level] > $this->_threshold)
        // if the threshold values is an array, check to see if the error level does not exist in it
  OR (is_array($this->_threshold) && ! in_array($this->_levels[$level], $this->_threshold)))
  {
#3

[eluser]Unknown[/eluser]
Well, you seem to be right about the condition, tried to replace the second and third conditions so the array condition will be earlier, but it still doesn't solve my problem.

By the way - with this configuration I DO get ERROR to log but not INFO

I even tried to restart the server for the changes to get in affect, and no good

Any other thoughts?




Theme © iAndrew 2016 - Forum software by © MyBB