You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2004/01/30 17:20:40 UTC
DO NOT REPLY [Bug 26550] New: -
Incorrect use of appender
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26550>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26550
Incorrect use of appender
Summary: Incorrect use of appender
Product: Log4j
Version: 1.2
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Configurator
AssignedTo: log4j-dev@jakarta.apache.org
ReportedBy: andreas.berg@triona.de
log4j.properties:
#First Appender
log4j.appender.OneFileout=org.apache.log4j.RollingFileAppender
log4j.appender.OneFileout.File=c:/temp/one.log
log4j.appender.OneFileout.MaxFileSize=1000KB
log4j.appender.OneFileout.MaxBackupIndex=1
log4j.appender.OneFileout.layout=org.apache.log4j.PatternLayout
log4j.appender.OneFileout.layout.ConversionPattern=%5p;%c{3};%d{ISO8601};[%t];%
m%n
#Second Appender
log4j.appender.TwoFileout=org.apache.log4j.RollingFileAppender
log4j.appender.TwoFileout.File=c:/temp/two.log
log4j.appender.TwoFileout.MaxFileSize=1000KB
log4j.appender.TwoFileout.MaxBackupIndex=1
log4j.appender.TwoFileout.layout=org.apache.log4j.PatternLayout
log4j.appender.TwoFileout.layout.ConversionPattern=%5p;%c{3};%d{ISO8601};[%t];%
m%n
log4j.logger.foo = FATAL, OneFileout
log4j.logger.foo.bar = DEBUG, TwoFileout
The call "Logger.getLogger("foo.bar").debug("Hello World");" writes to one.log
AND two.log, it should only write to two.log, because only FATAL messages
should go to OneFileout.
Or am I wrong? Kind regards,
Andreas.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org