Hi,

I am currently using the following log4j.properties to output logs to a file
(I am redirecting stdout into a file):

# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=DEBUG, A1

# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} %m%n

# Print only messages of level WARN or above in the package net.
log4j.logger.net=INFO


This is working just fine, but now I would like 'error' level output to go
to a different file from all other log output.  How should I go about this?


Thanks for your help,

James Hughes


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to