RE: multiple logger to the same appender

2004-01-26 Thread Shapira, Yoav
Howdy, >log4j.rootLogger=DEBUG, A1, mailer >log4j.logger.aClass=DEBUG, A2, mailer Because aClass inherits from the root by default, you don't need to declare the mailer again. You'll get duplicate messages. Yoav Shapira This e-mail, including any attachments, is a confidential business comm

Re: multiple logger to the same appender

2004-01-26 Thread Ionel GARDAIS
Yes it is But I was not thinkning of a programmatically created logger. Say I have this : log4j.rootLogger=DEBUG, A1, mailer log4j.logger.aClass=DEBUG, A2, mailer log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1.file=TEProxy.log log4j.appender.A1.append=false log4j.appender.A1.

RE: multiple logger to the same appender

2004-01-26 Thread Shapira, Yoav
Howdy, >I incurred in a similar doubt lately. Supose you are configuring your >logger programmatically. So you can create an appender, create a logger, >and set the appender to that logger. In the case you are creating more >than one logger, it may be interesting (but I'm no sure yet...) to reus

Re: multiple logger to the same appender

2004-01-26 Thread Jorge Francisco Del Teglia
Hi, Hi, Is it possible for many loggers to use the same appender ? I know a single logger can log to multiple appender but is the reverse true ? I don't understand the question. Appenders don't declare loggers, loggers declare appenders and loggers can specify multiple appenders. What funct

Re: multiple logger to the same appender

2004-01-26 Thread Jacob Kjome
At 01:31 PM 1/26/2004 +0100, you wrote: Hi, Is it possible for many loggers to use the same appender ? I know a single logger can log to multiple appender but is the reverse true ? I don't understand the question. Appenders don't declare loggers, loggers declare appenders and loggers can specify