joomla/joomla-platform — Issue #853: enhancement for JLog::addLogger
Author: okonomiyaki3000
Created: 2012-02-10 07:28:24+00:00
State: open

It's great that you can add a logger for a specific combination of priorities and categories but wouldn't it be nice if you could add one that excluded specific categories? So, for example, you could add logging for anything except 'deprecation' messages.

A 4th parameter could be added to JLog::addLogger which could either be:
a) an array of categories to specifically exclude
b) a boolean switch that alters the behavior of the existing $categories parameter

I'm not sure which is preferable. 'a' is slightly more complex but offers more (probably unnecessary) flexibility. 'b' may be easier to understand, use, and implement. I would be happy with either. Actually, I will happily code either of them if there is support for this idea.