Source

encuestame / encuestame-war / src / main / resources / log4j.xml

Full commit
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

    <!-- Appenders -->
    <appender name="console" class="org.apache.log4j.ConsoleAppender">
        <param name="Target" value="System.out" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%-5p: %c - %m%n" />
        </layout>
    </appender>

    <appender name="file" class="org.apache.log4j.RollingFileAppender">
        <param name="maxFileSize" value="2000KB" />
        <param name="maxBackupIndex" value="5" />
        <param name="File" value="encuestame-core.log" />
        <param name="threshold" value="debug" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d{ABSOLUTE} %5p %c{1}:%L - %m%n" />
        </layout>
    </appender>

    <!-- Application Loggers -->
    <logger name="org.encuestame.mvc">
        <level value="debug" />
    </logger>

    <logger name="org.encuestame.comet">
        <level value="debug" />
    </logger>

    <logger name="org.encuestame.persistence">
        <level value="debug" />
    </logger>

    <logger name="org.encuestame.core">
        <level value="debug" />
    </logger>

    <logger name="org.encuestame.business">
        <level value="debug" />
    </logger>

    <logger name="org.encuestame.utils">
        <level value="debug" />
    </logger>

    <logger name="org.encuestame.search">
        <level value="warn" />
    </logger>

    <logger name="org.springframework.core">
        <level value="warn" />
    </logger>

    <logger name="org.springframework.beans">
        <level value="warn" />
    </logger>

    <logger name="org.springframework.context">
        <level value="warn" />
    </logger>

    <logger name="org.springframework.jdbc">
        <level value="warn" />
    </logger>

    <logger name="org.springframework.web">
        <level value="warn" />
    </logger>

    <logger name="org.apache.http">
        <level value="debug" />
    </logger>

    <logger name="httpclient.wire">
        <level value="debug" />
    </logger>

    <logger name="org.springframework.security">
        <level value="debug" />
    </logger>

    <logger name="org.springframework.integration">
        <level value="warn" />
    </logger>

    <!-- Root Logger -->
    <root>
        <priority value="warn" />
        <!-- <appender-ref ref="console" /> -->
        <appender-ref ref="file" />
    </root>

</log4j:configuration>