➊
<appender name="audit" class="org.apache.log4j.RollingFileAppender"> <param name="append" value="false"/> ➋ <param name="maxFileSize" value="10KB"/> ➌ <param name="maxBackupIndex" value="5"/> ➍ <param name="file" value="c:/logs/audit.log"/> ➎
➏
<layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n"/> ➐ </layout>
➑
<filter class="org.apache.log4j.varia.LevelRangeFilter"> <param name="LevelMin" value="warn"/> ➒ <param name="LevelMax" value="warn"/> ➓ </filter>
</appender>
<!-- Application Loggers -->
<logger name="com.springmvc">
<level value="info"/>
<appender-ref ref="monitor"/>
<appender-ref ref="audit"/>
</logger>
...
</log4j:configuration>