You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by ma...@rwesystems.com on 2001/10/02 10:25:48 UTC

Why doesn't FileAppender create directories?

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. 

Thanks in advance
Martin




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