logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: Finding Appenders
Date Wed, 09 Oct 2002 22:01:05 GMT
This problem has been mentioned several times. We will address the issue in 
log4j 1.3.

At 13:39 09.10.2002 -0700, you wrote:
>I've been working on a small struts application that
>can "plug in" to existing webapps to view/configure
>log4j at runtime. The LogManager (and underlying
>LoggerRepository/Heirarchy) API gives an easy way to
>retreive all loggers currently instantiated, but I am
>missing something similar for Appenders.
>
>The reason I ask for this is that I would like to be
>able to present a list of all currently instantiated
>appenders to the user to attach to any given logger.
>
>Currently the only way that I can do this reliably is
>to actually getCurrentLoggers(), then
>getAllAppenders() on each of them, a bit of a
>cumbersome process.
>
>I've also noticed that at least with the
>DOMConfigurator, configured appenders that are never
>referenced by a logger are never instantiated, so this
>seems to also rule out ever getting any of their
>settings except by re-reading the configuration.
>
>I have an application-level workaround where I set up
>a logger in my configuration file
>"_admin.log4j.AppenderDump" where I attach all
>configured appenders, both in the config file, and any
>created dynamically by the application, but this just
>addresses the symptoms of my problem.
>
>Any ideas?
>
>Greg
>
>P.S. if there are any other lightweight, webapp based
>realtime log4j administration tools out there, i'd
>love to know about them. thx
>
>__________________________________________________
>Do you Yahoo!?
>Faith Hill - Exclusive Performances, Videos & More
>http://faith.yahoo.com
>
>--
>To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

--
Ceki

TCP implementations will follow a general principle of robustness: be
conservative in what you do, be liberal in what you accept from
others. -- Jon Postel, RFC 793



--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message