Welcome Guest, Not a member yet? Register   Sign In
Disabling Logging on Controller Level
#1

[eluser]Unknown[/eluser]
Hi,

Wondering if it is possible to disable logging based on a controller.

Currently using Fire Log (http://getsparks.org/packages/fire_log/v.../HEAD/show) and works well, but every time a tester runs that page, it adds more debug messages to the log, which makes debugging difficult.

Any suggestions on methods to be able to stop the log writing based on that controller or route?

#2

[eluser]Rokkitt[/eluser]
Have you tried the following in a controller

Code:
$this->config->set_item('log_threshold', 'level');

If you only want to log your self you could open up config/config.php

Code:
if ($_SERVER['REMOTE_ADDR'] == 'your IP') {
  $config['log_threshold'] = 4;
} else {
  $config['log_threshold'] = 0;
}




Theme © iAndrew 2016 - Forum software by © MyBB