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 2004/05/07 23:17:24 UTC

DO NOT REPLY [Bug 28836] New: - file appender could create directory if given and not existing

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=28836>.
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=28836

file appender could create directory if given and not existing

           Summary: file appender could create directory if given and not
                    existing
           Product: Log4j
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Other
        AssignedTo: log4j-dev@jakarta.apache.org
        ReportedBy: g.hueller@gmx.at


imagine
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=logs/whatever.log

now it might be that the logs dir does not exist on the file system.
It would be neat if the appender could check if all necessary paths to the 
desired file exist and if not, create them as necessary.

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