Disabling Logging on Controller Level |
[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?
[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') { |
Welcome Guest, Not a member yet? Register Sign In |