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.A1.layout.ConversionPattern=* %-5p (%x) %d{DATE} %c -
>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.

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

View raw message