You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "sivan (JIRA)" <ji...@apache.org> on 2016/02/04 08:38:39 UTC
[jira] [Closed] (LOG4J2-1265) Roll over not happening on new
servers
[ https://issues.apache.org/jira/browse/LOG4J2-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
sivan closed LOG4J2-1265.
-------------------------
Resolution: Fixed
Seems this is a permission issue for the tomcat service.
> 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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org