Hi ,
RollingFileAppender peAppender = new RollingFileAppender(defaultPattern,"/LOG/temp.log",true); The above line throws java.io.FileNotFoundException if the directory is not present. How do you make log4j create the directory if it is not present? Thanx, Rajan