Jin,
Can you send me a unified patch? See the section "Patches" in http://jakarta.apache.org/site/source.html to learn how to send unified patches. Regards, Ceki At 09:38 02.10.2001 -0500, Jin Zhao wrote: >>> Hi, > >>>is there a rationale why a FileAppender (log4j 1.1.3) doesn't create the >>>directories that are part of its "file" option if they don't exist? (the >>>file itself _is_ created when all directories exist.) It results in a >>>java.io.FileNotFoundException for every single log attempt. > >>>Maybe an additional "createDirs" option could be used to control the >>>appender's behaviour. > >You can overwrite FileAppender#setFile() to do this. The drawback is >you need maitain this branch by yourself. >We met such problems before and created our own tree of >FileAppender/RollingFileAppender. >Of course it's better to add it into the current log4j code. Let's >wait for Ceki's comments. > >Jin > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] -- Ceki G�lc� - http://qos.ch --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
