Yes, you can.
But be aware that at runtime it is the same instance of the appender. So you 
can't configure it differently.
Heri

> -----Original Message-----
> From: Preuss, Jacqueline - ENCOWAY [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 11, 2007 3:46 PM
> To: Log4J Users List
> Subject: One appender on different loggers?
> 
> 
> Hi all!
> 
>  
> 
> Is it possible to have the same appender (f.ex.
> DailyRollingFileAppender) for different loggers. So that 
> appender A can
> be assigned to logger 1 and logger 2 at the same time? If yes, how can
> we configure it programmatically? Just use a singleton pattern for the
> appender?
> 
>  
> 
> Thanks,
> 
> Jacqueline.
> 
>  
> 
>  
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to