You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Preuss, Jacqueline - ENCOWAY" <Pr...@encoway.de> on 2007/10/11 15:45:54 UTC

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.