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

When rolled file directory is not defined always by deafult use same directory for rolled file as for log file being rolled

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • logback-core
    • None

    Description

      E.g. if FileNamePattern of ch.qos.logback.core.rolling.TimeBasedRollingPolicy is configured to "webapp.%d

      {yyyy-MM-dd}

      .log.zip" and File of ch.qos.logback.core.rolling.RollingFileAppender is configured to "/var/log/tomcat6/webapp.log", then rolled file should be created in /var/log/tomcat6 directory and not in current working directory.

      This is to keep config DRY in cases when log and it's rolled fragments should be stored in same directory.

      This behavior is consistent with case when both File and FileNamePattern don't define directory, just extends this behavior to the case when File has directory defined, and FileNamePattern doesn't.

      Related logback-users mailing list discussion reference: http://markmail.org/message/k6ezjx5lqitwvoy4

      Attachments

        Activity

          People

            logback-dev Logback dev list
            sslavic Stevo Slavic
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: