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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]