<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" >
<log4j:configuration debug="false">
<appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
<param name="threshold" value="TRACE" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%-5p:%d{HH:mm:ss,SSS}](%F:%L) - %m%n" />
</layout>
</appender>
<!--
<appender name="BABUKUMA_FILE_OUT" class="org.apache.log4j.RollingFileAppender">
<param name="Threshold" value="TRACE" />
<param name="MaxFileSize" value="5MB" />
<param name="MaxBackupIndex" value="5" />
<param name="File" value="/var/data/logs/babukuma.log" />
<param name="Append" value="true" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%t][%-5p:%d{HH:mm:ss,SSS}](%F:%L) - %m%n" />
</layout>
</appender>
-->
<appender name="BABUKUMA_FILE_OUT" class="org.apache.log4j.DailyRollingFileAppender">
<param name="Threshold" value="TRACE" />
<param name="DatePattern" value="'.'yyyy-MM-dd" />
<param name="File" value="/var/data/logs/babukuma.log" />
<param name="Append" value="true" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%t][%-5p:%d{HH:mm:ss,SSS}](%F:%L) - %m%n" />
</layout>
</appender>
<category name="com.babukuma">
<priority value="INFO" />
<appender-ref ref="BABUKUMA_FILE_OUT" />
<appender-ref ref="STDOUT" />
</category>
<category name="org.seasar">
<priority value="INFO" />
<appender-ref ref="BABUKUMA_FILE_OUT" />
<appender-ref ref="STDOUT" />
</category>
<!--
<root>
<priority value="WARN" />
<appender-ref ref="STDOUT" />
</root>
-->
</log4j:configuration>
2009年9月28日月曜日
やるたびに忘れてしまうlog4jの設定
時刻:
月曜日, 9月 28, 2009