document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  3.  
  4. <!-- ===================================================================== -->
  5. <!--                                                                       -->
  6. <!--  Log4j Configuration                                                  -->
  7. <!--                                                                       -->
  8. <!-- ===================================================================== -->
  9.  
  10. <!-- $Id: log4j.xml,v 1.1.2.4 2005/10/06 23:05:58 bill Exp $ -->
  11.  
  12. <!--
  13.   | For more configuration infromation and examples see the Jakarta Log4j
  14.   | owebsite: http://jakarta.apache.org/log4j
  15. -->
  16.  
  17. <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
  18.  
  19.    <!-- ================================================ -->
  20.    <!-- Special Log File specifically for MDX Statements -->
  21.    <!-- ================================================ -->
  22.  
  23.    <!-- the only output logged to this appender below are MDX statements -->
  24.  
  25.    <appender name="MDXLOG" class="org.apache.log4j.RollingFileAppender">
  26.      <param name="File" value="${log.dir}/mdx.log"/>
  27.      <param name="Append" value="false"/>
  28.      <param name="MaxFileSize" value="500KB"/>
  29.      <param name="MaxBackupIndex" value="1"/>
  30.  
  31.      <layout class="org.apache.log4j.PatternLayout">
  32.        <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
  33.      </layout>
  34.    </appender>
  35.  
  36.    <!-- ================================================ -->
  37.    <!-- Special Log File specifically for SQL Statements -->
  38.    <!-- ================================================ -->
  39.  
  40.    <!-- the only output logged to this appender below are MDX statements -->
  41.  
  42.    <appender name="SQLLOG" class="org.apache.log4j.RollingFileAppender">
  43.      <param name="File" value="${log.dir}/sql.log"/>
  44.      <param name="Append" value="false"/>
  45.      <param name="MaxFileSize" value="500KB"/>
  46.      <param name="MaxBackupIndex" value="1"/>
  47.  
  48.      <layout class="org.apache.log4j.PatternLayout">
  49.        <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
  50.      </layout>
  51.    </appender>
  52.  
  53.    <!-- the only output logged to this appender below are MDX statements -->
  54.  
  55.    <appender name="MONDRIAN" class="org.apache.log4j.RollingFileAppender">
  56.      <param name="File" value="${log.dir}/mondrian.log"/>
  57.      <param name="Append" value="false"/>
  58.      <param name="MaxFileSize" value="500KB"/>
  59.      <param name="MaxBackupIndex" value="1"/>
  60.  
  61.      <layout class="org.apache.log4j.PatternLayout">
  62.        <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
  63.      </layout>
  64.    </appender>
  65.  
  66.  <!-- and logs only to the MDXLOG -->
  67.    <category name="mondrian.mdx">
  68.       <priority value="DEBUG"/>
  69.       <appender-ref ref="MDXLOG"/>
  70.    </category>
  71.  
  72.    <!-- and logs only to the SQLLOG -->
  73.    <category name="mondrian.sql">
  74.       <priority value="DEBUG"/>
  75.       <appender-ref ref="SQLLOG"/>
  76.    </category>
  77.  
  78.    <!-- and logs only to the MONDRIAN -->
  79.    <category name="mondrian">
  80.       <priority value="DEBUG"/>
  81.       <appender-ref ref="MONDRIAN"/>
  82.    </category>
  83.  
  84.    <root>
  85.       <priority value="INFO"/>
  86.       <appender-ref ref="CONSOLE"/>
  87.    </root>
  88.  
  89. </log4j:configuration>
');