[ 
http://jira.qos.ch/browse/LBCORE-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ceki Gulcu resolved LBCORE-42.
------------------------------

    Fix Version/s: 0.9.10
       Resolution: Fixed

Fixed

> add option to FileAppender to auto-create parent directories
> ------------------------------------------------------------
>
>                 Key: LBCORE-42
>                 URL: http://jira.qos.ch/browse/LBCORE-42
>             Project: logback-core
>          Issue Type: Bug
>          Components: Appender
>    Affects Versions: unspecified
>         Environment: Operating System: Linux
> Platform: PC
>            Reporter: Bruno Navert
>            Assignee: Logback dev list
>             Fix For: 0.9.10
>
>         Attachments: FileAppender.java.patch
>
>
> FileAppender should be able to automatically create parent directories as 
> needed when writing the log file.
> For instance, if configured with 
> <File>/var/tmp/project_name/some_file.log</File>, and the new option set to 
> true (suggest <CreateParentDirectories>true</CreateParentDirectories> maybe), 
> then in FileAppender.setFile(), it should do
> new File( fileName ).getParentFile().mkdirs()
> workaround is to create the directory before initializing logback. Possible 
> but far less than ideal, and rather complicated too

-- 
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
logback-dev@qos.ch
http://qos.ch/mailman/listinfo/logback-dev

Reply via email to