Hi,
Not sure if this is the right place to post this as it is a problem with log4j really and not
java or
Tomcat. Let me know if this needs moving.
Here goes:
I have a
servlet in tomcat that uses log4j to log details, this works fine on all the systems at home and work, but I get the following error when it is run on our customers site:
log4j: No appenders could be found for category (some.category.name).
log4j: Please initialize the log4j system properly.
I have looked this up on log4j's website, they give the following advice:
Log4j does not have a default logging target. It is the user's responsibility to ensure that all categories can inherit an appender. This can be easily achieved by attaching an appender to the root category.
This works fine off site? I have the following log4j.properties in the WEB-INF/classes dir in tomcat:
Any ideas?
Thanks in advance.
Phil Maskell