Hello All, I am trying to use log4j for the first time and have been reading all kinds of tutorials online on the subject. Unfortunately I have hit a wall and could use some help. I have created the following log4j.properties file
I have put code into my java application to write log messages, but I don't even get to the code, I get an error on the startup of tomcat. Could this be because I do not have my log4j jar file in the correct place? Here is the error message:
implicates that line as being wrong, so that tells us that your properties file is being found successfully. [ September 20, 2006: Message edited by: Paul Clapham ]
Joined: May 17, 2001
I can't thank you enough for your responses! This was driving me crazy!
I added org.apache.log4j.RollingFileAppender where I just had RollingFileAppender and I got past that error. Now I am hitting another error but I think it is the same problem, I need to work some more on my log4j.properties file.
Thanks for helping me over that bump, will let you know if I can get past all the errors and to an actual log file.