logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Smith" <psm...@aconex.com>
Subject RE: help on disabling log4j from configuration file..
Date Wed, 20 Oct 2004 21:21:25 GMT
I don't think there is a log4j.disable property.  Do you only want to show
WARN level events and above for ALL of the log4j hierachy?  If so, you want
"log4j.threshold=WARN".

cheers,

Paul Smith

> -----Original Message-----
> From: Zhu Qifei [mailto:zhuqifei@ufinity.com]
> Sent: Wednesday, October 20, 2004 11:57 AM
> To: Log4J Users List
> Subject: help on disabling log4j from configuration file..
>
>
> Hi,
>
>    I am using log4j 1.2.8, I found that the option "log4j.disable=WARN"
> does not work at all in my log4j.property file, all the log statements
> will still be logged, is there anything wrong? below is the property
> file i used, thanks for any help:)
>
> Regards
> Qifei
>
> log4j.debug=true
> # enable/disable for all
> log4j.disableOverride=false
> log4j.disable=WARN
>
> # logger root
> log4j.rootLogger=ERROR, rootappender
> log4j.appender.rootappender=org.apache.log4j.RollingFileAppender
> log4j.appender.rootappender.MaxBackupIndex=10
> log4j.appender.rootappender.MaxFileSize=1MB
> log4j.appender.rootappender.File=WEB-INF/all.log
> log4j.appender.rootappender.layout=org.apache.log4j.PatternLayout
> log4j.appender.rootappender.layout.ConversionPattern=%d - %m%n
>
> # logger Test
> log4j.logger.Test=WARN, appenderTest
> log4j.appender.appenderTest=org.apache.log4j.RollingFileAppender
> log4j.appender.appenderTest.MaxBackupIndex=10
> log4j.appender.appenderTest.MaxFileSize=1MB
> log4j.appender.appenderTest.File=WEB-INF/Test.log
> log4j.appender.appenderTest.layout=org.apache.log4j.PatternLayout
> log4j.appender.appenderTest.layout.ConversionPattern=%d - %m%n
>
> # logger Test2
> log4j.logger.Test2=ALL, appenderTest2
> log4j.appender.appenderTest2=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.appenderTest2.DatePattern='.'yyyy-MM-dd
> log4j.appender.appenderTest2.file=WEB-INF/Test2.log
> log4j.appender.appenderTest2.layout=org.apache.log4j.PatternLayout
> log4j.appender.appenderTest2.layout.ConversionPattern=%d - %m%n
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
>


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


Mime
View raw message