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: use both programmatic and file configuration
Date Tue, 09 Nov 2004 18:16:47 GMT

If your programmatically configured appender is attached to a logger, say 
x, and your user's SMTPAppender (configured using a script) is attached to 
logger y, where x != y, then user's configuration will not override the 
programmatic configration. However, if x=y then, your programmatically 
configured appender will be closed before SMTPAppender is attached to logger x.

Does that help?

At 06:33 PM 11/9/2004, Ionel GARDAIS wrote:
>I'd like to provide a way to add loggers/appenders to
>log4j whereas I have already configured it
>programmaticaly with a default, unremoveable appender.
>That is, I have a ConsoleAppender or FileAppender
>(defined in code) and I'd like to allow the user to
>add an SMTPAppender if he wants to.
>How could I archieve this ?
>Does the fact that the user provides a log4j
>configuration file annihilate the programmatic part ?

Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message