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
--
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
-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
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
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
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
6 matches
Mail list logo