You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Steve Pruitt <SP...@exstream.com> on 2005/12/08 19:01:52 UTC
Retrieving all defined appenders
Does anyone know a good way to query for all defined appenders without
having to loop through all loggers? I've searched the api, but I can't
find anything.
Thanks,
-S
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
RE: Retrieving all defined appenders
Posted by Burton Strauss <Bu...@SmallNetSolutions.com>.
Nope. You have to do the loop - actually you need to loop through all
loggers and their attached appenders plus the root logger. Search back a
week ago or so and you'll find the code fragments that I posted during a
discussion of this.
------Burton
-----Original Message-----
From: Steve Pruitt [mailto:SPruitt@exstream.com]
Sent: Thursday, December 08, 2005 12:02 PM
To: Log4J Users List
Subject: Retrieving all defined appenders
Does anyone know a good way to query for all defined appenders without
having to loop through all loggers? I've searched the api, but I can't find
anything.
Thanks,
-S
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org