Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9a8d60ca83
Fetching contributors…

Cannot retrieve contributors at this time

file 49 lines (43 sloc) 1.748 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="false" xmlns:log4j="http://jakarta.apache.org/log4j/">
    <!-- ============================== -->
    <!-- Append messages to the console -->
    <!-- ==============================-->
    <appender class="org.apache.log4j.ConsoleAppender" name="SYSTEM_OUT">
        <param name="Target" value="System.out"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d - %m%n"/>
        </layout>
    </appender>
    
   <!-- File Appender -->
    <appender class="org.apache.log4j.appender.TimeAndSizeRollingAppender" name="LOGFILE">
        <param name="File" value="logs/log"/>
        <param name="DatePattern" value="'.'yyyy-MM-dd"/>
        <param name="CompressionAlgorithm" value="ZIP"/>
        <layout class="org.apache.log4j.PatternLayout">
         <param name="ConversionPattern" value="%d [%t] %c %5p: %m%n"/>
        </layout>
    </appender>
    
    <logger additivity="false" name="CONSOLE">
        <level value="debug"/>
        <appender-ref ref="SYSTEM_OUT"/>
    </logger>
    
    <logger additivity="false" name="org.hibernate">
        <level value="warn"/>
        <appender-ref ref="LOGFILE"/>
    </logger>
    
    <logger additivity="false" name="com.mchange">
        <level value="debug"/>
        <appender-ref ref="LOGFILE"/>
    </logger>

    <logger additivity="false" name="MESSAGES">
        <level value="debug"/>
        <appender-ref ref="LOGFILE"/>
    </logger>
    
    <!-- Setup the Root category -->
    <root>
        <priority value="debug"/>
        <appender-ref ref="LOGFILE"/>
    </root>
</log4j:configuration>
Something went wrong with that request. Please try again.