On Fri, 2003-08-15 at 10:52, Larry Young wrote: > Paul, > > Yes, I need to be able to specify which class may display which > set of discreet types. For example, I might have "com.*" allowed to > display ERROR, but then override that for "com.xyz.MyClass" to display only > TIMING, "com.abc.def.*" to display METHOD_TRACE & TIMING, and > "com.abc.dataaccess.*" to display DB_ACCESS.
<snip/> Yeah, the more I think about it the more I see the issue. Ouch. Ok, since in each class you like have something like this: public static final Logger LOG = Logger.getLogger(MyClass.class); Could you do something like this? (Cumbersome still, but hey, if you want Ultimate Configuration it comes with Ultimate complexity usually public static final DBLogger = Logger.getLogger("DB." + MyClass.class.getName() ); public static final TimerLogger= Logger.getLogger("Trace." + MyClass.class.getName()); ... That way you will have a Logger for every class and every aspect. You can then turn _ALL_ Trace logging by setting the "DB" Logger to whatever level, then all the class names inherit from it. You can then also set "DB" to INFO, but override with "DB.com.mycompany.MyClass=DEBUG". Would that help? cheers, Paul --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]