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

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

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

        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d{ABSOLUTE} {%8.8t} (%x) [%-5p,%-10c{1}] %m%n"/>
        </layout>
    </appender>

    <appender name="file" class="org.apache.log4j.FileAppender">
        <param name="File" value="logs/test.log"/>
        <param name="Append" value="false"/>
        <param name="Threshold" value="WARN"/>

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

    <category name="com.arjuna">
        <level value="ERROR"/>
        <appender-ref ref="console"/>
        <appender-ref ref="file"/>
    </category>
    <category name="org.objectweb">
        <level value="ERROR"/>
        <appender-ref ref="console"/>
    </category>
    <category name="bitronix">
        <level value="ERROR"/>
        <appender-ref ref="console"/>
    </category>
    <category name="org.simplejta">
        <level value="ERROR"/>
        <appender-ref ref="console"/>
    </category>
    <category name="org.enhydra.jdbc">
        <level value="ERROR"/>
        <appender-ref ref="console"/>
    </category>
</log4j:configuration>
