A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other Open Source Projects
log4j - Is the log file to be present when the application started?
Makesh Kumar Ramakrishnan
Joined: Jan 07, 2006
Jul 16, 2008 15:38:00
The file path is mentioned in the log4j property file.
If the particular directory is not available, log4j is throwing FileNotFound Exception. So, Is there anyway log4j automatically creates the directory path when the mentioned path is not available?.
[ July 16, 2008: Message edited by: Makesh Kumar Ramakrishnan ]
Makesh<br /> <br />SCJP | SCWCD | SCBCD | SCEA
Joined: Oct 14, 2005
Jul 16, 2008 16:48:00
Well, as you can see, it doesn't. You could check the documentation for that appender but I doubt you will find any method to specify "Create the directory if it doesn't exist".
However it shouldn't take more than a couple of minutes to create the directory. I would just do that rather than hunting down the docs.
subject: log4j - Is the log file to be present when the application started?
new to jsapi
Exception sending context initialized event to listener
[SOLVED] log4j RollingFileAppender file location
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015