Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2946

RollingFile appender with out filename doesn't roll on OnStartupTriggeringPolicy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.12.1
    • 2.14.1
    • None
    • None

    Description

      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>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pksn1982 Sreekanth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: