Hi!

In fact, I got two responses for the question as I had sent the same question twice.
My mailbox was acting funny yesterday, so I had to send it twice.


Well, I do have the log4j.properties file under <web-inf>/classes
I had thought of using the PropertyConfigurator too.
But, when you integrate log4j with struts, we no where mention the log4j.properties file specifically, ie, we
just create the file and put it under the mentioned location.
And when we use it, we do not mention the log4j.properties file anywhere in the files too.
So, how to get a handle to the file?
Correct me if there are better approaches to the same.


Steps by which I integrated are :

a)Got the log4j.jar file
b)created the log4j.properties file
c)created commons-logging.properties file
d) used static logger = new logger(this) in the files where this is the class name.


TIA,

Richie



At 02:28 PM 1/27/2004 -0600, you wrote:
Do you mean changes made after the initial configuration of log4j?  You can
use

PropertyConfigurator.configureAndWatch( cfgFile, delay )

This will load your log4j configuration file and create a thread that looks
for changes to the config file reloading when necessary.

--Norm

--
Norm Deane
MIS Consultant
Vanderbilt University
(615) 322-7855
[EMAIL PROTECTED]

> -----Original Message-----
> From: shankarr [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 27, 2004 9:14 AM
> To: [EMAIL PROTECTED]
> Subject: log4j integration
>
>
> Hi!
> I have integrated log4j with struts.
> I need to know how to ensure that the changes done to
> log4j.properties file
> is taken into account at run time.
> TIA,
> Richie
>
> "To achieve all that is possible, one must attempt the impossible"
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

"To achieve all that is possible, one must attempt the impossible"




Reply via email to