Created
January 16, 2016 23:56
-
-
Save kgolebiowski/e8fc2da7372393a4ff7b to your computer and use it in GitHub Desktop.
Improved Liferay logging for Liferay 6.2 (copy together with log4j.dtd to liferay-portal-6.2-ce-ga5/tomcat-7.0.62/webapps/ROOT/WEB-INF/classes/META-INF/)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | |
<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{dd.MM.yyyy HH:mm:ss,SSS Z}] %-5p [%t][%c{1}:%L] %m%n" /> | |
</layout> | |
</appender> | |
<root> | |
<priority value="INFO" /> | |
<appender-ref ref="FILE" /> | |
</root> | |
</log4j:configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment