[EMAIL PROTECTED] wrote:
To make sure, you get all available loggers , I would useYes, that seems good. What is the advantage to using Logger.getRootLogger().getAllAppenders() as in the example from Yoav?
for( Enumeration enumLoggers = LogManager.getCurrentLoggers();enumLoggers.hasMoreElements();) { Logger logCurrent = (Logger) enumLoggers.nextElement() ; for (Enumeration enumAppenders = logCurrent.getAllAppenders();enumAppenders.hasMoreElements();) { .... evaluate your appender } }
Wouln't I get all loggers in this case, too?
However I would do it the other way around. Why don't you write your own Managing class, and when an Appender is instantiated (or bound to a logger) register it with this class? Then you could ask your own Manager class.That would be too much in my case. I do not need this. It now works very well.
Thanks to you both. Marco
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
