PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/webportal/src/main/resources/log4j.xml

http://alageospatialportal.googlecode.com/
XML | 52 lines | 44 code | 4 blank | 4 comment | 0 complexity | bad82768bd1816953ede5edd776014cc MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8" ?>
 2<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
 3<!--
 4Initial log4j configuration file - will be replaced at runtime
 5-->
 6<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
 7
 8
 9    <appender name="console" class="org.apache.log4j.ConsoleAppender">
10        <param name="Target" value="System.out"/>
11        <layout class="org.apache.log4j.PatternLayout">
12            <param name="ConversionPattern" value="%d{ISO8601} %5p [%t] (%F:%L) **SERVER_NAME** **PORTAL_NAME** - %m%n"/>
13        </layout>
14    </appender>
15
16    <appender name="email"  class="org.apache.log4j.net.SMTPAppender">
17        <param name="BufferSize" value="512" />
18        <param name="SMTPHost" value="postoffice.utas.edu.au" />
19        <param name="From" value="gjsw@utas.edu.au" />
20        <param name="To" value="bjward@utas.edu.au" />
21        <param name="Subject" value="[WEBPORTAL] Application message" />
22        <layout class="org.apache.log4j.PatternLayout">
23            <param name="ConversionPattern"
24                   value="[%d{ISO8601}] **SERVER_NAME** **PORTAL_NAME** %n%n%-5p%n%n%c%n%n%m%n%n" />
25        </layout>
26        <filter class="org.apache.log4j.varia.LevelRangeFilter">
27            <param name="LevelMin" value="WARN"/>
28            <param name="LevelMax" value="FATAL"/>
29        </filter>
30    </appender>
31    <logger name="org.springframework">
32        <level value="warn"/>
33    </logger>
34    <logger name="org.apache.commons.httpclient">
35        <level value="error"/>
36    </logger>
37    <logger name="httpclient.wire">
38        <level value="fatal"/>
39    </logger>
40    <logger name="httpclient.httpconnection">
41        <level value="fatal"/>
42    </logger>
43    <logger name="httpclient.httpmethodbase">
44        <level value="fatal"/>
45    </logger>
46    <root>
47        <priority value ="debug" />
48        <appender-ref ref="console" />
49        <!--  <appender-ref ref="email" /> -->
50    </root>
51
52</log4j:configuration>