Originally posted by Mohit Agarwal:
Hi ,
Thanks Saurabh for the reply .
I tried out by using a file Appender & naming filename as a.log .
Then the file location turned out be ${CATALINA_HOME}\bin , is it the location that one gets the log file when one just mentions the file name .
When i give the absolute name as ${CATALINA_HOME}\webapps\appName\logs\a.log then there was
log4j:ERROR setFile(null,null) call failed.
java.io.FileNotFoundException : ${CATALINA_HOME}\webapps\appName\logs (Access is denied).
Whats the reason ?
Pls. help me out on this .
Thanks,
Mohit Agarwal.
Hi mohit,
Can you please send acroos the code which you have written in log4j.xml or logger.properties file.
I can make further comments looking at them,
Saurabh