PageRenderTime 32ms CodeModel.GetById 29ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/protocols/ss7/sgw/boot/src/main/config/log4j.xml

http://mobicents.googlecode.com/
XML | 51 lines | 30 code | 10 blank | 11 comment | 0 complexity | 0d86407f828b23765302792c194e71b5 MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8"?>
 2<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
 3
 4<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
 5	debug="false">
 6
 7	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
 8		<param name="Target" value="System.out" />
 9		<param name="Threshold" value="DEBUG" />
10
11		<layout class="org.apache.log4j.PatternLayout">
12			<!-- The default pattern: Date Priority [Category] Message\n -->
13			<param name="ConversionPattern"
14				value="%d{ABSOLUTE} %-5p [%c{1}] %m%n" />
15
16		</layout>
17	</appender>
18
19	<!-- A time/date based rolling appender -->
20	<appender name="FILE"
21		class="org.apache.log4j.RollingFileAppender">
22		<!--  ADD HOME VAR HERE? -->
23		<param name="File" value="../log/server.log" />
24		<param name="Append" value="false" />
25		<param name="Threshold" value="DEBUG" />
26
27		<layout class="org.apache.log4j.PatternLayout">
28			<!--
29				The default pattern: Date Priority [Category] (Thread) Message\n
30			-->
31			<param name="ConversionPattern"
32				value="%d %-5p [%c{1}] (%t) %m%n" />
33
34			<!--
35				The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
36				<param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x)
37				%m%n"/>
38			-->
39		</layout>
40	</appender>
41
42	<category name="org.mobicents">
43		<priority value="DEBUG" />
44	</category>
45
46	<root>
47		<appender-ref ref="CONSOLE" />
48		<appender-ref ref="FILE" />
49	</root>
50
51</log4j:configuration>