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

AsyncLogger with RollingFileAppender Daily Per Hour Not Working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0-rc1
    • None
    • Appenders, Configurators
    • CentOS release 6.5 (Final)
      Memory 16GB
      AMD Phenom(tm) II X6 1090T Processor
      JBoss 7.1.0-cr1

    Description

      Using attached configuration i expect:

      router.log --> currently written file
      router.log.2014-06-20-00
      router.log.2014-06-20-01
      ...
      router.log.2014-06-20-23
      router.log.2014-06-21-00
      ...

      But instead i got:
      router.log
      router.log.2014-06-20-1 --> One day worth of logs

      I want to achieve daily rolling file with per hour rolling, so far I haven't been able to produce the log with proper format, and as I remember, the interval parameter seems like to increment by day not hour, like stated in documentation.

      I have tried remkop@yahoo.com suggestions to use $${date:yyyy-MM-dd} in filePattern as suggested in http://stackoverflow.com/questions/24051421/log4j2-asynclogger-rolling-file-appender-not-rolling-daily-per-hour, but still got same result.

      I didn't however, test this in sync logger, because i need the async one, as for sync one i already have with old log4j.

      Attachments

        1. log4j2-trace.png
          88 kB
          Bobby
        2. log4j2.xml
          1 kB
          Bobby

        Activity

          People

            Unassigned Unassigned
            liong777 Bobby
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: