Turn off log component dynamicaly

Is there any way turn off any component (for example log component) in controller or action.

I need this feature when for example i have action with thousands of queries, or for ajax actions where should not be any additional debug data.


Only log component is preloaded by default as implemented in [font="Courier New"]protected/config/main.php[/font].

You cannot turn them off, because they don’t get turned on until you call any of them.

You can however set up different logging routes for different categories and levels, if you don’t want them to be logged.

You may also refer to: http://code.google.c…1&q=log%20route

This will be available in 1.0.7.