The code to fix this not too difficult. However, I don't think log4j has a mandate to silently create directories on the user's system. There is no intention to fix this, unless of course you get other users/developers to argue otherwise.
At 12:10 PM 5/28/2003 -0700, Charles Hudak wrote:
Disregard.
This has previously been reported as bug 9150 (I shoulda checked the bug database first).
Hopefully Ceki can get this fix in soon 8^)
-----Original Message----- From: Charles Hudak [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 12:02 To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: FileAppender
Greetings,
When setting up a file appender, the docs say that if the file doesn't exist, it is created. This is true, with the following caveat: if one or more of the directories do not exist, the file is not created. This causes problems if I want to setup a new server to log to a log directory that hasn't been created yet. It adds administrative complexity to require the deployer to know that the directory needs to be created. The code should be smart enough to do this.
Does anyone know if more recent releases of log4j have fixed this?
If not, can this enhancment be made (or should I make it myself)? All you really need to do is a File.createDirs() in FileAppender.setFile(...).
Charles Hudak Software Engineering Manager
Arrowhead General Insurance/YouZoom, Inc. [EMAIL PROTECTED] 858.320.6800x6344
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
Ceki For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]