Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-889

RollingFileAppender appender using FixedWindowRollingPolicy with bad fileNamePattern logs stop operating when rollover is needed

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 0.9.30
    • logback-core
    • Windows XP, Eclipse JDK1.7 both standalone application & JBoss 7 A.S. WAR service

    Description

      When I changed logback.xml to the following, logging to console and default.log stopped when default.log exceeded max size, and log is not rolling over. All logging after that seems to go to a black hole (not console or log file).

      Download rln_troubleshoot.zip and run the project. The 1st time it runs, default.log will have some entries: when I run this, the last entry I see has been "Log entry 13 to help..."

      Change logback.xml entry "<fileNamePattern>" to the following, and the log works properly , rolling over and continuing logging:
      <fileNamePattern>/app/cobalt/logs/localhost/default-%i.log</fileNamePattern>

      Attachments

        Activity

          People

            logback-dev Logback dev list
            raymond.naseef Raymond Naseef
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: