Skip to content
Snippets Groups Projects
log.xml 2.04 KiB
Newer Older
  • Learn to ignore specific revisions
  • <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    
    <!--
      // This configuration file is suitable for testing purposes. 
    -->
    <log4j:configuration debug="true" xmlns:log4j='http://jakarta.apache.org/log4j/'>
    
      <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
        <layout class="org.apache.log4j.PatternLayout">
          <!--
            // %d: outputs the date of the logging event.
            // %-5p: priority (i.e. level) of the logging event should be left justified to
            //       a width of five characters.
            // %t: outputs the name of the thread that generated the logging event.
            // %c: outputs the category of the logging event.
            // %m: outputs the application supplied message associated with the logging event.
            // %n: outputs the platform dependent line separator character or characters.
            // %X: outputs the MDC (mapped diagnostic context) associated with the thread that generated the logging event.
          -->
          <param name="ConversionPattern"
            value="%d %-5p [%t]%X{sessionInfo} %c - %m%n" />
        </layout>
      </appender>
    
      <!--
        // Defined but not used right now.
      -->
      <appender name="NULL" class="org.apache.log4j.varia.NullAppender" />
    
      <!--
        // Enable full wire (header and content) + context logging
        // For more information look at http://jakarta.apache.org/commons/httpclient/logging.html.
        // We do not need to set a level value here as loggers inherit their level from the root logger.
      -->
    
      <!-- 
        // Do not use log level debug otherwise plain passwords are readable.
      -->
      <logger name="httpclient.wire">
        <level value="ERROR" />
      </logger>
    
      <!--  
        // Uncomment this for debugging value binding in Hibernate
          <category name="org.hibernate.type">  
            <priority value="TRACE"/>  
          </category>
      -->
    
      <!--
        <logger name="org.apache.commons.httpclient">
        <level value="DEBUG" />
        </logger>
      -->
    
      <root>
        <priority value="info" />
        <appender-ref ref="STDOUT" />
      </root>
    
    </log4j:configuration>