Is it possible to disable dev output in a template when devMode is true? For example the template just outputs JSON, which breaks when Craft's devMode logging is added.
You can create a simple plugin with an init() method like so:

public function init()
{
    craft()-&gt;log-&gt;removeRoute('WebLogRoute');
    craft()-&gt;log-&gt;removeRoute('ProfileLogRoute');
}


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