logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Reumann <maill...@reumann.net>
Subject Re: Multiple log files
Date Wed, 08 Jan 2003 14:52:57 GMT

On Wednesday, January 8, 2003, 9:02:16 AM, Brad wrote:

BB> #Setting this to FATAL will stop the sqlLog from being printed to the
BB> file
BB> log4j.appender.sqlLog.Threshold=INFO
BB> log4j.appender.sqlLog=org.apache.log4j.DailyRollingFileAppender
BB> log4j.appender.sqlLog.DatePattern='.'yyyy-MM-dd
BB> log4j.appender.sqlLog.File=WebBaseSQLLog.log
BB> log4j.appender.sqlLog.layout=org.apache.log4j.PatternLayout
BB> log4j.appender.sqlLog.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
BB> #Setting this to FATAL will stop the errorLog from being printed to the
BB> file
BB> log4j.appender.errorLog.Threshold=ERROR
BB> log4j.appender.errorLog=org.apache.log4j.DailyRollingFileAppender
BB> log4j.appender.errorLog.DatePattern='.'yyyy-MM-dd
BB> log4j.appender.errorLog.File=WebBaseSQLLog.log
BB> log4j.appender.errorLog.layout=org.apache.log4j.PatternLayout
BB> log4j.appender.errorLog.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

BB> Does anyone see what I'm doing wrong here?!?

I'm new to using log4j as well but from a quick glance it looks like you are using the
same file name "WebBaseSQLLog.log" for both ERROR and INFO. I thought
you wanted each to go to a different file. If so did you try using two
different file names?



To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

View raw message