Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
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