logback 0.9.30 fileNamePattern does not create missing directories
------------------------------------------------------------------

                 Key: LBCORE-245
                 URL: http://jira.qos.ch/browse/LBCORE-245
             Project: logback-core
          Issue Type: Bug
          Components: Appender
    Affects Versions: 0.9.30
            Reporter: Vedavalli Kanala
            Assignee: Logback dev list


We are using logback 0.9.30. In our logback configuration we have the need to 
create an appender that rolls over every day and the archives are stored in a 
separate directory. <fileNamePattern> tag does not seem to create the missing 
directories in the path. However, <File> tag under the <appender> seems to work 
fine.

This is the sample configuration we have: 

<appender name="ABC" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>/var/abc/abc.log</file>
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <!-- daily rollover -->
      
<fileNamePattern>/var/abc/abc-archive/abc.%d{yyyy-MM-dd'T'HH}.log.gz</fileNamePattern>
      <maxHistory>365</maxHistory>
    </rollingPolicy>
    <encoder>
      <pattern>%msg%n</pattern>
    </encoder>
  </appender>

"/var/abc/abc-archive" directory doesn't exist on the file system and i would 
expect that logback would create the missing directory. Please let us know if 
there is any piece missing in the configuration that would do that job or if 
its a genuine bug and would get fixed sometime soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
logback-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-dev

Reply via email to