-
Notifications
You must be signed in to change notification settings - Fork 4
/
portal-log4j-ext.xml
44 lines (34 loc) · 1.39 KB
/
portal-log4j-ext.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.EnhancedPatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%t][%c{1}:%L] %m%n" />
</layout>
</appender>
<appender name="FILE" class="org.apache.log4j.rolling.RollingFileAppender">
<rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy">
<param name="FileNamePattern" value="@liferay.home@/logs/[email protected]@.%d{yyyy-MM-dd}.log" />
</rollingPolicy>
<layout class="org.apache.log4j.EnhancedPatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%t][%c{1}:%L] %m%n" />
</layout>
</appender>
<category name="com.liferay.portal.kernel.util.JavaDetector">
<priority value="ALL" />
</category>
<category name="com.liferay.portal.kernel.util.ServerDetector">
<priority value="ALL" />
</category>
<category name="com.liferay.portal.spring.hibernate.DialectDetector">
<priority value="ALL" />
</category>
<category name="au.com.permeance.liferay.portal.servlet.filters.request.WebRequestLoggerFilter">
<priority value="ALL" />
</category>
<root>
<priority value="INFO" />
<appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" />
</root>
</log4j:configuration>