Have you verified that the log4j config file is in your servlet container's
classpath?



-----Original Message-----
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 8:43 AM
To: Log4J Users List
Subject: Log4J in servlet


Hi
I was just testing Log4J in standalone classes and
seems to that they work fine,
now i have to put it work in my intranet application,
so do i have to put these lines of code in each class
or servlet, or is there a work around.
In the manual there is one example of Initializing
servlet,
i implemented that servlet, and it is initilaized with
out error, then in my other servlet i wrote these
lines of code
Logger logger =
Logger.getLogger(this.getClass().toString());
logger.debug("Hello world from Log4J");

But i get error in my application server saying

log4j:WARN No appenders could be found for logger
(com.pfizer.maps.ConnectAS400).
log4j:WARN Please initialize the log4j system
properly.

so how can i make my class ConnectAS400 look for
Log4J.LCF

Ashish

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to