sivan created LOG4J2-1265:
-----------------------------
Summary: Roll over not happening on new servers
Key: LOG4J2-1265
URL: https://issues.apache.org/jira/browse/LOG4J2-1265
Project: Log4j 2
Issue Type: Bug
Components: Appenders
Environment: Production
Reporter: sivan
Hi,
We are using log4j2 with daily rolling file appender for the last three years
in six servers and is working fine in all servers.
Now we have added two mmore servers and here the roll over is not happening on
daily basis. Also the file contains many back dated logs.
Do you have any idea why this is happening in new servers? Is anything related
to server side?
Below is the log4j2 configuration
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<properties>
<property name="logPattern">%c|%K{sessionId}|%t|%d{MM/dd/yyyy
HH:mm:ss.SSS}|%p|%C|%M|%L|%K{msg}%n</property>
<property
name="filePattern">${sys:logfilepath}//$$${date:yyyy-MM}//${sys:oft.appserver}-out-%d{yyyy-MM-dd}.log</property>
<property
name="fileName">${sys:logfilepath}//${sys:oft.appserver}-out.log</property>
</properties>
<appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="logPattern"/>
</Console>
<RollingFile name="RollingFile" fileName="${fileName}"
filePattern="${filePattern}">
<PatternLayout>
<pattern>${logPattern}</pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy interval="1"
modulate="true"/>
</Policies>
</RollingFile>
</appenders>
<loggers>
<AsyncLogger name="logtype" level="info" includeLocation="true"
additivity="false">
<AppenderRef ref="RollingFile"/>
</AsyncLogger>
<root level="info">
<AppenderRef ref="Console"/>
</root>
</loggers>
</configuration>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]