root/branches/douglm/deployment/bwcrawler/shellscr/resources/log4j.xml

Revision 2271 (checked in by douglm, 4 years ago)

Add some administrative support methods to the core system. These provide paged retrieval of child name/paths for collections allowing crawlers and the like to wander around the data structure.

Also add some options for the new bwcrawler project which makes use of these

Aslo add external to link in bwcrawler project

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
3
4 <!-- ===================================================================== -->
5 <!--                                                                       -->
6 <!--  Log4j Configuration for testing                                                 -->
7 <!--                                                                       -->
8 <!-- ===================================================================== -->
9
10 <!-- $Id: log4j.xml,v 1.2 2005/08/16 17:19:01 rpical Exp $ -->
11
12 <!--
13    | For more configuration information 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="dumpres.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   <appender name="CHAINSAW_CLIENT" class="org.apache.log4j.net.SocketAppender">
64       <param name="RemoteHost" value="localhost"/>
65       <param name="Port" value="4445"/>
66       <param name="LocationInfo" value="true"/>
67   </appender>
68
69    <!-- ================ -->
70    <!-- Limit categories -->
71    <!-- ================ -->
72
73    <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
74    <category name="org.apache">
75       <priority value="INFO"/>
76    </category>
77
78    <category name="httpclient">
79       <priority value="INFO"/>
80    </category>
81
82    <!-- ical4j is noisy -->
83    <category name="net.fortuna.ical4j">
84       <priority value="INFO"/>
85    </category>
86
87    <!-- caching is noisy too -->
88    <category name="net.sf.ehcache">
89       <priority value="INFO"/>
90    </category>
91
92    <!-- Hide all the hibernate stuff - below are some finer categories -->
93    <category name="org.hibernate">
94       <priority value="INFO"/>
95    </category>
96
97    <category name="org.hibernate.type">
98       <priority value="INFO"/>
99    </category>
100
101    <category name="org.hibernate.engine">
102       <priority value="INFO"/>
103    </category>
104
105    <category name="org.hibernate.impl.BatcherImpl">
106       <priority value="INFO"/>
107    </category>
108
109    <category name="org.hibernate.cfg">
110       <priority value="INFO"/>
111    </category>
112
113    <category name="org.hibernate.tool">
114       <priority value="INFO"/>
115    </category>
116
117    <!-- Set bedework categories -->
118    <category name="org.bedework">
119      <priority value="DEBUG"/>
120    </category>
121
122    <!-- Set rpi categories -->
123    <category name="edu.rpi">
124      <priority value="DEBUG"/>
125    </category>
126
127    <!--
128       | An example of enabling the custom TRACE level priority that is used
129       | by the JBoss internals to diagnose low level details. This example
130       | turns on TRACE level msgs for the org.jboss.ejb.plugins package and its
131       | subpackages. This will produce A LOT of logging output.
132    <category name="org.jboss.system">
133      <priority value="TRACE" class="org.jboss.logging.XLevel"/>
134    </category>
135    <category name="org.jboss.ejb.plugins">
136      <priority value="TRACE" class="org.jboss.logging.XLevel"/>
137    </category>
138    -->
139
140    <!-- ======================= -->
141    <!-- Setup the Root category -->
142    <!-- ======================= -->
143
144    <root>
145       <priority value ="DEBUG" />
146       <appender-ref ref="FILE"/>
147       <appender-ref ref="CONSOLE"/>
148    </root>
149 </log4j:configuration>
Note: See TracBrowser for help on using the browser.