You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2005/07/19 16:48:29 UTC

DO NOT REPLY [Bug 35794] New: - FileAppender to create necessary dirs in path to file.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35794>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35794

           Summary: FileAppender to create necessary dirs in path to file.
           Product: Log4j
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: d.alexander@lse.ac.uk


Would be nice if FileAppender could create necessary dirs in path to the file
where necessary:

e.g. if I specify a filename, /var/logs/myapp/name.log
but some of the dirs don't exist, I just get an error.

Would be nice if it was possible to have log4j create the dirs if necessary.

I suppose this might not be wanted as a default setting, but there could be a
boolean createDirs property to turn this functionality on.

Wouldn't mind writing a patch for this if the idea is accepted.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org