Originally posted by simeon: When i start my tomcat(5.0.12), i found some log4j:warn appeared refer to my project. The log appeared under the console looks like the following.
Log4j looks for a log4j.properties file in the current directory or reachable via the classpath when you first make a call to it, unless you've configured it separately. I'm not familiar with Tomcat anymore, so I can't say where you should put that file, but that is what's missing.
posted 15 years ago
i think that i do put the log4j.xml (i use the xml configuration file instead) and my other log operations run correctly. However, i just checked my configuration file, in which the ConsoleAppender'pattern starts with the "%-4r" but not the "log4j:" in the tomcat console. By the way, i read tomcat's documents carefully and find that tomcat do not use log4j or common-logging but its own log utilities instead which is configured in the "server.xml" file under the directory 'conf'. So the output i mentioned "log4j:WARN" is neither tomcat's output nor my web application's output. Where did it come from? Could anybody help me? Thanks! The following is my log4j.xml's snippet for the ConsoleAppender.
[ January 09, 2004: Message edited by: simeon ]
I child proofed my house but they still get in. Distract them with this tiny ad: