logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gulcu <ceki_gu...@yahoo.com>
Subject Re: What is the name of a FileAppender when constructed dynamically?
Date Tue, 08 Jan 2002 17:57:22 GMT

No, you don't need to call activateOptions().
activateOptions is required when multiple options
depend on each other. 

The javadocs say this:

Interface OptionHandler

Method Detail: activateOptions 

public void activateOptions()

Activate the options that were previously set with
calls to option setters. 

This allows to defer activiation of the options until
all options have been set. This is required for
components which have related options that remain
ambigous until all are set. 

For example, the FileAppender has the File and Append
options both of which are ambigous until the other is
also set.

HTH, Ceki

--- T Master <tmaster@iknowledgeinc.com> wrote:
> Do I need to call activateOptions() after setName()
> ?
> Just trying to be careful.....
> 
> 
> ----- Original Message -----
> From: "Ceki Gülcü" <ceki@qos.ch>
> To: "Log4J Users List"
> <log4j-user@jakarta.apache.org>
> Sent: Monday, January 07, 2002 5:02 PM
> Subject: Re: What is the name of a FileAppender when
> constructed
> dynamically?
> 
> 
> >
> > 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>
> >
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:log4j-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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