Skip to main content
added 96 characters in body
Source Link
Brad Bell
  • 67.6k
  • 6
  • 75
  • 145

Just remove thosethese two logging routes from your plugin's init() method in your PluginHandlePlugin.php file with this and you should be set:

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

That will prevent the extra logging and profiling information to be output in the browser's console when devMode is enabled.

Just remove those two logging routes from your plugin's init() method in your PluginHandlePlugin.php file with this and you should be set:

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

Just remove these two logging routes from your plugin's init() method in your PluginHandlePlugin.php file:

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

That will prevent the extra logging and profiling information to be output in the browser's console when devMode is enabled.

Source Link
Brad Bell
  • 67.6k
  • 6
  • 75
  • 145

Just remove those two logging routes from your plugin's init() method in your PluginHandlePlugin.php file with this and you should be set:

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