[logback-user] How to configure error handler for file appender
Mayur Gupta
mayur.gupta81 at gmail.com
Tue Oct 16 10:37:29 CEST 2012
Hey Guys,
Can anybody tell me how to configure a errorHandler in logback? Below is my
log4j configuration:
<appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
<errorHandler class="org.apache.log4j.varia.FallbackErrorHandler">
<root-ref/>
<appender-ref ref="CONSOLE"/>
</errorHandler>
<param name="File" value="../logs/b.log"/>
<param name="Append" value="true"/>
<!-- Rollover at midnight each day -->
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<layout class="org.apache.log4j.PatternLayout">
<!-- The default pattern: Date Priority [Category] Message\n -->
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>
Thanks
-Mayur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20121016/e33d9000/attachment.html>
More information about the Logback-user
mailing list