1

I have been searching through the admin panel on our staging site trying to find where to turn off the application log.

I know that you can turn off dev mode, and that will turn off the log, but I still want dev mode on, I just want to turn off the log itself.

I did look at the documentation here and was not able to find it.

Any suggestions.

3
  • You want to disable all logging to craft/storage/runtime/logs?
    – Brad Bell
    Aug 12, 2016 at 17:00
  • I want to disable that log that shows at the end of the page, it shows as application log in the console, Aug 12, 2016 at 17:02
  • @BradBell Probably the application and profiling logs which are output in the front end. This is the only way, right? Aug 12, 2016 at 17:02

1 Answer 1

2

Lifting from this answer to a similar question:

You'll have to write a simple, custom plugin, and add the following to the init() method in your plugin's primary class:

craft()->log->removeRoute('WebLogRoute');
craft()->log->removeRoute('ProfileLogRoute');

For instant success, you can scaffold your plugin by visiting the plugin factory – name it whatever you want and don't enable any components.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.