[
https://issues.apache.org/jira/browse/LOG4J2-2946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ralph Goers closed LOG4J2-2946.
-------------------------------
Fix Version/s: 2.14.1
Resolution: Duplicate
This is a duplicate of LOG4J2-2981 which has been fixed.
> RollingFile appender with out filename doesn't roll on
> OnStartupTriggeringPolicy
> --------------------------------------------------------------------------------
>
> Key: LOG4J2-2946
> URL: https://issues.apache.org/jira/browse/LOG4J2-2946
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.12.1
> Reporter: Sreekanth
> Priority: Major
> Fix For: 2.14.1
>
>
> Below is the configuration I use, The log file is not rolling during each
> start up. Also noticed that end of the day roll over doesn't change the date
> on the new file.
> <Appenders>
> <RollingFile name="PyramidFileAppender"
> filePattern="${sys:LOG_DIR}/${sys:pyramid.application.name}${sys:pyramid.application.instance.number}_log4j.log.%d\{yyyyMMdd}.%i.gz">
> <PatternLayout>
> <Pattern>%d (%F:%L) [%t] %-5p %c - %m%n</Pattern>
> </PatternLayout>
> <Policies>
> <OnStartupTriggeringPolicy />
> <CronTriggeringPolicy schedule="0 0 0 * * ?"/>
> <SizeBasedTriggeringPolicy size="30 MB"/>
> </Policies>
> </RollingFile>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)