| 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.2 2004/12/15 21:22:56 rpical Exp $ --> |
|---|
| 11 |
|
|---|
| 12 |
<!-- |
|---|
| 13 |
| For more configuration infromation and examples see the Jakarta Log4j |
|---|
| 14 |
| website: http://jakarta.apache.org/log4j |
|---|
| 15 |
--> |
|---|
| 16 |
|
|---|
| 17 |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" |
|---|
| 18 |
debug="false"> |
|---|
| 19 |
|
|---|
| 20 |
<!-- ================================= --> |
|---|
| 21 |
<!-- Preserve messages in a local file --> |
|---|
| 22 |
<!-- ================================= --> |
|---|
| 23 |
|
|---|
| 24 |
<!-- A time/date based rolling appender --> |
|---|
| 25 |
<appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender"> |
|---|
| 26 |
<errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler"/> |
|---|
| 27 |
<param name="File" value="test.log"/> |
|---|
| 28 |
<param name="Append" value="true"/> |
|---|
| 29 |
|
|---|
| 30 |
<!-- Rollover at midnight each day --> |
|---|
| 31 |
<param name="DatePattern" value="'.'yyyy-MM-dd"/> |
|---|
| 32 |
|
|---|
| 33 |
<!-- Rollover at the top of each hour |
|---|
| 34 |
<param name="DatePattern" value="'.'yyyy-MM-dd-HH"/> |
|---|
| 35 |
--> |
|---|
| 36 |
|
|---|
| 37 |
<layout class="org.apache.log4j.PatternLayout"> |
|---|
| 38 |
<!-- The default pattern: Date Priority [Category] Message\n --> |
|---|
| 39 |
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/> |
|---|
| 40 |
|
|---|
| 41 |
<!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n |
|---|
| 42 |
<param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/> |
|---|
| 43 |
--> |
|---|
| 44 |
</layout> |
|---|
| 45 |
</appender> |
|---|
| 46 |
|
|---|
| 47 |
<!-- ============================== --> |
|---|
| 48 |
<!-- Append messages to the console --> |
|---|
| 49 |
<!-- Set Threshold to INFO/DEBUG --> |
|---|
| 50 |
<!-- ============================== --> |
|---|
| 51 |
|
|---|
| 52 |
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> |
|---|
| 53 |
<errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler"/> |
|---|
| 54 |
<param name="Target" value="System.out"/> |
|---|
| 55 |
<param name="Threshold" value="DEBUG"/> |
|---|
| 56 |
|
|---|
| 57 |
<layout class="org.apache.log4j.PatternLayout"> |
|---|
| 58 |
<!-- The default pattern: Date Priority [Category] Message\n --> |
|---|
| 59 |
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> |
|---|
| 60 |
</layout> |
|---|
| 61 |
</appender> |
|---|
| 62 |
|
|---|
| 63 |
<!-- ================ --> |
|---|
| 64 |
<!-- Limit categories --> |
|---|
| 65 |
<!-- ================ --> |
|---|
| 66 |
|
|---|
| 67 |
<!-- Limit the org.apache.commons category to INFO as its DEBUG is verbose --> |
|---|
| 68 |
<category name="org.apache.commons"> |
|---|
| 69 |
<priority value="INFO"/> |
|---|
| 70 |
</category> |
|---|
| 71 |
|
|---|
| 72 |
<!-- ical4j is noisy --> |
|---|
| 73 |
<category name="net.fortuna.ical4j"> |
|---|
| 74 |
<priority value="INFO"/> |
|---|
| 75 |
</category> |
|---|
| 76 |
|
|---|
| 77 |
<!-- Set rpi categories --> |
|---|
| 78 |
<!-- |
|---|
| 79 |
<category name="edu.rpi"> |
|---|
| 80 |
<priority value="DEBUG"/> |
|---|
| 81 |
</category> |
|---|
| 82 |
--> |
|---|
| 83 |
|
|---|
| 84 |
<!-- Set washington categories --> |
|---|
| 85 |
<category name="edu.washington"> |
|---|
| 86 |
<priority value="DEBUG"/> |
|---|
| 87 |
</category> |
|---|
| 88 |
|
|---|
| 89 |
<!-- |
|---|
| 90 |
| An example of enabling the custom TRACE level priority that is used |
|---|
| 91 |
| by the JBoss internals to diagnose low level details. This example |
|---|
| 92 |
| turns on TRACE level msgs for the org.jboss.ejb.plugins package and its |
|---|
| 93 |
| subpackages. This will produce A LOT of logging output. |
|---|
| 94 |
<category name="org.jboss.system"> |
|---|
| 95 |
<priority value="TRACE" class="org.jboss.logging.XLevel"/> |
|---|
| 96 |
</category> |
|---|
| 97 |
<category name="org.jboss.ejb.plugins"> |
|---|
| 98 |
<priority value="TRACE" class="org.jboss.logging.XLevel"/> |
|---|
| 99 |
</category> |
|---|
| 100 |
--> |
|---|
| 101 |
|
|---|
| 102 |
<!-- ======================= --> |
|---|
| 103 |
<!-- Setup the Root category --> |
|---|
| 104 |
<!-- ======================= --> |
|---|
| 105 |
|
|---|
| 106 |
<root> |
|---|
| 107 |
<priority value ="DEBUG" /> |
|---|
| 108 |
<appender-ref ref="FILE"/> |
|---|
| 109 |
<appender-ref ref="CONSOLE"/> |
|---|
| 110 |
</root> |
|---|
| 111 |
</log4j:configuration> |
|---|