Bug 35794 - FileAppender to create necessary dirs in path to file.
Summary: FileAppender to create necessary dirs in path to file.
Status: RESOLVED DUPLICATE of bug 9150
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Appender (show other bugs)
Version: unspecified
Hardware: Other other
: P2 enhancement
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-19 16:48 UTC by d.alexander
Modified: 2005-07-19 14:41 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description d.alexander 2005-07-19 16:48:25 UTC
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.
Comment 1 Curt Arnold 2005-07-19 22:41:44 UTC

*** This bug has been marked as a duplicate of 9150 ***