Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MONDRIAN: example log4j XML configuration
[git-p4: depot-paths = "//open/mondrian/": change = 3600]
- Loading branch information
Sherman Wood
committed
May 18, 2005
1 parent
fb2c367
commit ec5a5d5
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | ||
|
||
<!-- ===================================================================== --> | ||
<!-- --> | ||
<!-- Log4j Configuration --> | ||
<!-- --> | ||
<!-- ===================================================================== --> | ||
|
||
<!-- $Id$ --> | ||
|
||
<!-- | ||
| For more configuration infromation and examples see the Jakarta Log4j | ||
| owebsite: http://jakarta.apache.org/log4j | ||
--> | ||
|
||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"> | ||
|
||
<!-- ================================= --> | ||
<!-- Preserve messages in a local file --> | ||
<!-- ================================= --> | ||
|
||
<!-- A size based file rolling appender, capturing everything --> | ||
|
||
<appender name="FILE" class="org.apache.log4j.RollingFileAppender"> | ||
<param name="File" value="mondrian.log"/> | ||
<param name="Append" value="false"/> | ||
<param name="MaxFileSize" value="500KB"/> | ||
<param name="MaxBackupIndex" value="1"/> | ||
|
||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/> | ||
</layout> | ||
</appender> | ||
|
||
<!-- ============================== --> | ||
<!-- Append messages to the console --> | ||
<!-- ============================== --> | ||
|
||
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> | ||
<param name="Target" value="System.out"/> | ||
<param name="Threshold" value="INFO"/> | ||
|
||
<layout class="org.apache.log4j.PatternLayout"> | ||
<!-- The default pattern: Date Priority [Category] Message\n --> | ||
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> | ||
</layout> | ||
</appender> | ||
|
||
<!-- ================ --> | ||
<!-- Limit categories --> | ||
<!-- ================ --> | ||
|
||
<!-- Limit the org.apache category to INFO as its DEBUG is verbose --> | ||
<category name="org.apache"> | ||
<priority value="INFO"/> | ||
</category> | ||
|
||
<category name="mondrian"> | ||
<priority value="INFO"/> | ||
</category> | ||
|
||
<category name="org.omg"> | ||
<priority value="INFO"/> | ||
</category> | ||
|
||
<category name="javax.olap"> | ||
<priority value="INFO"/> | ||
</category> | ||
|
||
<!-- ======================= --> | ||
<!-- Setup the Root category --> | ||
<!-- ======================= --> | ||
|
||
<root> | ||
<appender-ref ref="CONSOLE"/> | ||
<appender-ref ref="FILE"/> | ||
</root> | ||
|
||
</log4j:configuration> |