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
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 that case. public void doFilter( ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filter