<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
      <param name="Target" value="System.out"/>
      <param name="Threshold" value="INFO"/>

      <layout class="org.apache.log4j.PatternLayout">
         <param name="ConversionPattern" value="[%p,%c{1}] %m%n"/>
      </layout>
   </appender>

   <appender name="FILE" class="org.apache.log4j.FileAppender">
      <param name="File" value="logs/ex3-trace.log" />
      <param name="Append" value="false" />

      <layout class="org.apache.log4j.PatternLayout">
         <param name="ConversionPattern" value="[%p,%c{1}] %m%n"/>
      </layout>
   </appender>

   <category name="org.jboss.security" additivity="false">
      <priority value="TRACE" class="org.jboss.logging.XLevel"/>
      <appender-ref ref="FILE"/>
   </category>
   <category name="org.jboss.security.auth.login.XMLLoginConfigImpl" additivity="false">
      <priority value="INFO" />
      <appender-ref ref="FILE"/>
   </category>

   <root>
      <level value ="DEBUG"/>
      <appender-ref ref="CONSOLE" />
      <appender-ref ref="FILE" />
   </root>
</log4j:configuration>
