<appender name="A2" class="org.apache.log4j.DailyRollingFileAppender">
<param name="File" value="c:\\temp\\app.log"/>
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<param name="Append" value="true"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss,SSS} %-5p %c - %m%n"/>
</layout>
</appender>
<appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
<appender-ref ref="A2"/>
</appender>
<category name="sample.pg.Logging" additivity="true" >
<priority value="debug" />
<appender-ref ref="ASYNC" />
</category>
|