Hi
When u say Log4J conf file, do u mean Log4J.properties
file, no it was not there, but when i put it in the
servlet container's classpath i got the desired
output, but when i was using Initialization servlet, i
thought that this servlet tells Logger to look for
file L0g4J.LCF instead of Log4J.properties,
any way i dont mind using Log4J.properties file, but
then do i have to write 
Logger logger = Logger.getLogger
"com.pfizer.maps.ConnectAS400");
this lines of code in each servlet, and Bean to get my
Log4J working.
Ashish


           
--- Dave Bender <[EMAIL PROTECTED]> wrote:
> 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]>
> 


__________________________________________________
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]>

Reply via email to