<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

   <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
     <param name="Threshold" value="INFO"/>
      <param name="File" value="log/logout.log" />
      <param name="Append" value="true" />

      <layout class="org.apache.log4j.PatternLayout">
         <param name="ConversionPattern" value="%d %-5p - %m%n"/>
      </layout>
   </appender>

   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
     <param name="Threshold" value="DEBUG"/>
     <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="[%d]:%-5p %m%n"/>
     </layout>
   </appender>

   <category name="org.apache">
      <priority value="INFO" />
      <appender-ref ref="CONSOLE" />
   </category>

   <category name="javax.mail">
      <priority value="INFO" />
      <appender-ref ref="CONSOLE" />
   </category>

   <category name="org.maachang">
      <priority value="DEBUG" />
      <appender-ref ref="CONSOLE" />
   </category>

   <root>
      <appender-ref ref="FILE" />
   </root>

</log4j:configuration>
