Sreekanth created LOG4J2-2946:
---------------------------------

             Summary: 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


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)

Reply via email to