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: What is the name of a FileAppender when constructed dynamically?
Date Tue, 08 Jan 2002 00:02:29 GMT

Just use the setName method from the AppenderSkeleton superclass. HTH, Ceki

At 16:42 07.01.2002 -0700, T Master wrote:
>What is the name of a FileAppender when constructed dynamically?
>
>I am using the RollingFileAppender, and wondering how to identify my
>appender at run-time.
>I see the Constructor does not accept a name.
>
>What I am trying to do is deteect if an appender is associated with a
>Category.
>This is done by using appender.getName()  to check if a Category contains my
>appender.
>It is always returning null.
>
>
>T Master
>
>
>--
>To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

--
Ceki Gülcü - http://qos.ch



--
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