tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pitre, Russell" <>
Subject RE: [POLL] Logging
Date Fri, 21 Nov 2003 18:17:09 GMT
Hi Everyone,  thanx for helping me decide to which logging api to use............which is log4j.......when
i try to use the logger i get this message on the console window...
log4j:WARN No appenders could be found for logger (com.pitre.servlet.SetupServlet).
log4j:WARN Please initialize the log4j system properly.
I have the log4j jar file in my WEB-INF/lib directory and my file in the
classes directory.   I "configured" the logger  with the properties file as such...the
seems to be loading least it can find the properties webapp is
deployed by way of ant and a war file....
InputStream in = getClass().getClassLoader().getResourceAsStream("");
   String watch = System.getProperty("LOGGING.WATCH");
   if(watch != null && watch.equalsIgnoreCase("TRUE")){
    System.out.println("Watch every 60 seconds for changes");
    System.out.println("Not watching for changes");
And here is my file.....

log4j.rootLogger=debug, R
I'm baffled....
-----Original Message----- 
From: Adam Hardy [] 
Sent: Fri 11/21/2003 5:23 AM 
To: Tomcat Users List 
Subject: Re: [POLL] Logging

	2. Java.util.Logging
	Purely because it's part of the sdk and meets my logging requirements. I
	did use log4j before, but since I decided I should know
	java.util.logging, I stuck with it after learning how to use it.
	To unsubscribe, e-mail:
	For additional commands, e-mail:

View raw message