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: Having 2 loggers log to the same file...
Date Mon, 08 Dec 2003 19:48:32 GMT

Can you provide the exception?

At 11:33 AM 12/8/2003 -0800, Alan Brown wrote:
>I'd like to have 2 separate parts of my code log to the same file
>because they share functionality.  However I'm getting a class cast
>exception when I specify the following in my log config file...
>
>
>log4j.logger.opsx.server.db = DEBUG, A3
>log4j.additivity.opsx.server.db = false
>log4j.logger.opsx.server.dac.OpsTransaction = DEBUG, A3
>log4j.additivity.opsx.server.dac.OpsTransaction = false
>
>log4j.appender.A3=org.apache.log4j.RollingFileAppender
>log4j.appender.A3.MaxFileSize=1024KB
>log4j.appender.A3.MaxBackupIndex=40
>log4j.appender.A3.File=\\opsx\\log\\db\\OpsxConnection.log
>log4j.appender.A3.layout=org.apache.log4j.PatternLayout
>log4j.appender.A1.layout.ConversionPattern=* %-5p (%x) %d{DATE} %c -
>\r\n%m\r\n\r\n
>
>
>If I comment out lines 3 and 4 then everything works ok with the logging
>going to the default logging file.
>
>Am I doing something obviously wrong?
>
>Thanks In Advance.
>
>alan

-- 
Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message