You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Christian Hufgard <ch...@gmx.de> on 2004/01/14 17:32:03 UTC
Why is Level.info logged into rootLogger?
Hi,
after I searching for the difference between rootlogger and rootLogger for a
few hours :/ I prefere to ask you this time ;)
The behaviour I expect for the following code is, that everything that has
Level Error and higher (fatal) will be written to logs/Error.log. But I also
find entries with level info and warning in the file.
## RollingFileAppender (defaultLog.log)
log4j.appender.defaultLog = org.apache.log4j.RollingFileAppender
log4j.appender.defaultLog.File = logs/Error.log
log4j.appender.defaultLog.MaxFileSize=10MB
log4j.appender.defaultLog.MaxBackupIndex=2
log4j.appender.defaultLog.layout = org.apache.log4j.PatternLayout
log4j.appender.defaultLog.layout.ConversionPattern = %d [%t] %-5p %c -
%m%n
log4j.rootLogger = ERROR, defaultLog
Hope this is as trivial as my last problem,
Christian
--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org