Created
August 14, 2011 17:40
-
-
Save davidsantiago/1145108 to your computer and use it in GitHub Desktop.
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
David-Santiagos-Computer:servlet David$ cat resources/log4j.xml | |
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | |
<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"> | |
<param name="ConversionPattern" value="%-5p %c{1} - %m%n"/> | |
</layout> | |
</appender> | |
<appender name="COMPUTEFILE" class="org.apache.log4j.DailyRollingFileAppender"> | |
<param name="File" value="logs/jclouds-compute.log" /> | |
<param name="Append" value="true" /> | |
<param name="DatePattern" value="'.'yyyy-MM-dd" /> | |
<param name="Threshold" value="TRACE" /> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n" /> | |
</layout> | |
</appender> | |
<appender name="WIREFILE" class="org.apache.log4j.DailyRollingFileAppender"> | |
<param name="File" value="logs/jclouds-wire.log" /> | |
<param name="Append" value="true" /> | |
<!-- Rollover at midnight each day --> | |
<param name="DatePattern" value="'.'yyyy-MM-dd" /> | |
<param name="Threshold" value="TRACE" /> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<!-- The default pattern: Date Priority [Category] Message\n --> | |
<param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n" /> | |
<!-- | |
The full pattern: Date MS Priority [Category] | |
(Thread:NDC) Message\n <param name="ConversionPattern" | |
value="%d %-5r %-5p [%c] (%t:%x) %m%n"/> | |
--> | |
</layout> | |
</appender> | |
<appender name="PALLETFILE" class="org.apache.log4j.DailyRollingFileAppender"> | |
<param name="File" value="logs/pallet.log" /> | |
<param name="Append" value="true" /> | |
<param name="DatePattern" value="'.'yyyy-MM-dd" /> | |
<param name="Threshold" value="TRACE" /> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n" /> | |
</layout> | |
</appender> | |
<appender name="ASYNCCOMPUTE" class="org.apache.log4j.AsyncAppender"> | |
<appender-ref ref="COMPUTEFILE" /> | |
</appender> | |
<appender name="ASYNCWIRE" class="org.apache.log4j.AsyncAppender"> | |
<appender-ref ref="WIREFILE" /> | |
</appender> | |
<category name="jclouds.headers"> | |
<priority value="DEBUG" /> | |
<appender-ref ref="ASYNCWIRE" /> | |
</category> | |
<category name="jclouds.wire"> | |
<priority value="DEBUG" /> | |
<appender-ref ref="ASYNCWIRE" /> | |
</category> | |
<category name="jclouds.compute"> | |
<priority value="TRACE" /> | |
<appender-ref ref="ASYNCCOMPUTE" /> | |
<appender-ref ref="console" /> | |
</category> | |
<category name="pallet"> | |
<priority value="TRACE" /> | |
<appender-ref ref="PALLETFILE" /> | |
</category> | |
<category name="jclouds.ssh"> | |
<priority value="DEBUG" /> | |
<appender-ref ref="ASYNCCOMPUTE" /> | |
</category> | |
<root> | |
<priority value ="info" /> | |
<appender-ref ref="console" /> | |
</root> | |
</log4j:configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add
<category name "vmfest">