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