Re: log4j - urgent

2006-06-14 Thread Dave Newton
Darren Hall wrote: > (continued from previous msg) > > HERE is the log4j.xml file I'm using (I forgot to include it in my last > message). > Whew, I knew there was a reason I almost always use the properties file. Java + XML: Like crack for people that like to type. Dave --

RE: log4j - urgent

2006-06-14 Thread Darren Hall
log4j/";> -Original Message- From: Li [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 2:27 AM To: Struts Users Mailing List Subject: Re: log4j - urgent Hi Koul, If you wanna simply use log4j in Struts application. You can just import log4j and create a Logger ins

Re: log4j - urgent

2006-06-14 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abhimanyu Koul wrote: > but the question is why do we need log4jservlet. why do we code it? You really don't need such a servlet. You need it if you decide to configure log4j programmatically. If you decide you do not need such a servlet (i never need

Re: log4j - urgent

2006-06-13 Thread Li
Hi Koul, If you wanna simply use log4j in Struts application. You can just import log4j and create a Logger instance in your source files, something like: import org.apache.log4j.Logger; Logger logger = Logger.getLogger(YourClassName.class); ... Then you can just use logger to log your i

Re: log4j - urgent

2006-06-13 Thread Abhimanyu Koul
Sent: Wednesday, June 14, 2006 11:49 AM Subject: RE: log4j - urgent > hi; > i think u don't need such a specific "log4jservlet" servlet. you can use any > servlet to initialize log4j > > here is a filter to init logger, you will need a logger property file in &g

RE: log4j - urgent

2006-06-13 Thread abdurrahman sahin
eading logger property "+file); } PropertyConfigurator.configure(file); } -Original Message- From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 9:12 AM To: Struts Mailing list Subject:

log4j - urgent

2006-06-13 Thread Abhimanyu Koul
hi all! i am using log4j in my application but am a bit confused about it. what r the steps to use log4j in my application. why do we need to create log4jservlet class in the application. is it necessary? if no, why do we create it? also, how does logfactory get to know that we are using log4j in