logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnson, Clay" <clay.john...@vignette.com>
Subject RE: Multiple appender with multiple log level.... please help...
Date Wed, 04 Apr 2001 15:32:53 GMT
You need to specify the appender threshold option, not to be confused with
the category priority.

-----Original Message-----
From: Massimo Di Marco [mailto:mdimarco@logibro.com]
Sent: Wednesday, April 04, 2001 10:15 AM
To: log4j-user@jakarta.apache.org
Subject: Multiple appender with multiple log level.... please help...

I'm trying to have 2 appender with each appender a different log level and
it seems like the second appender log level overwrite the first one... Why?
Is it possible to make the log level not overwrite each other....
This is my properties file...
log4j.category.Generate                          = WARN, GENERATE1_Appender
log4j.category.Generate.TestLog                  = DEBUG,GENERATE2_Appender
log4j.appender.GENERATE1_Appender                =
log4j.appender.GENERATE1_Appender.File           = System.out
log4j.appender.GENERATE1_Appender.layout         =
log4j.appender.GENERATE2_Appender                =
log4j.appender.GENERATE2_Appender.File           =
log4j.appender.GENERATE2_Appender.Append         = true
log4j.appender.GENERATE2_Appender.MaxFileSize    = 100kb
log4j.appender.GENERATE2_Appender.MaxBackupIndex = 5
log4j.appender.GENERATE2_Appender.layout         =
log4j.appender.GENERATE2_Appender.layout.ConversionPattern = %d{dd MMM yyyy
HH:mm:ss,SSS} %-8.8p %l %L - %m\n
The first appender log all message of level DEBUG just like the second
appender... why? Can I avoid that?
Thanks for the help...
Massimo :)
Massimo Di Marco
Logibro Inc.
mdimarco@logibro.com <mailto:mdimarco@logibro.com> 
(514) 931-8356 Ext. 3114

View raw message