• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

log4j warning

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
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.

Do anybody know what's wrong with it?Thanks in advance.
 
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Simeon Shi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!