• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

log4j warning

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
The knights of nee want a shrubbery. And a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic