<?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"/>
        <layout class="org.apache.log4j.TTCCLayout">
            <param name="DateFormat" value="ISO8601"/>
        </layout>
    </appender>


    <appender name="unit-tests"
              class="org.apache.log4j.RollingFileAppender">
        <param name="File" value="./target/unit-tests.log"/>
        <param name="MaxFileSize" value="10240KB"/>
        <param name="MaxBackupIndex" value="6"/>
        <layout class="org.apache.log4j.TTCCLayout">
            <param name="DateFormat" value="ISO8601"/>
        </layout>
    </appender>

    <logger name="org.apache.commons.httpclient" additivity="false">
        <level value="warn"/>
        <appender-ref ref="console"/>
        <appender-ref ref="unit-tests"/>
    </logger>

    <logger name="org.apache.http" additivity="false">
        <level value="info"/>
        <appender-ref ref="console"/>
        <appender-ref ref="unit-tests"/>
    </logger>

    <logger name="org.jboss.resteasy" additivity="false">
        <level value="info"/>
        <appender-ref ref="console"/>
        <appender-ref ref="unit-tests"/>
    </logger>
    <logger name="httpclient.wire" additivity="false">
        <level value="info"/>
        <appender-ref ref="console"/>
        <appender-ref ref="unit-tests"/>
    </logger>

    <root>
        <priority value="debug"/>
        <appender-ref ref="console"/>
        <appender-ref ref="unit-tests"/>
    </root>

</log4j:configuration>




