Of course.  You can programatically configure log4j, which means you can
pull the config attributes from any source you like.  The drawback is that
you will have to write the code which interprets the config attributes.

Have a look at the source for the org.apache.log4j.PropertyConfigurator and
the org.apache.log4j.xml.DOMConfigurator classes to see what steps are
needed to programatically setup log4j.

PS, for the other machine option, both of the standard configurators
understand URLs (actually when you pass it a file name it is interpreted as
a URL)...



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 7:20 AM
To: [EMAIL PROTECTED]
Subject: configuring log4j without a file? is it possible? 


Hello people,

In the examples people use they all seem to give the path of a config file
to configure log4j.
Is there anyway we can configure log4j (before it logs to a appender)
without giving it the path of a config file???
maybe get config from Database? another machine etc?
any ideas? solutions? i would be extremely grateful

Cheers.

____________________________________________________________________________
___
 The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Statements and opinions expressed in this e-mail may not
represent those of the company. Any review, retransmission, dissemination
or other use of, or taking of any action in reliance upon, this information
by persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender immediately and
delete the material from any computer. This e-mail may be read by an
employee of the company as part of the internal monitoring process and is
therefore not to be considered private by the sender or the recipient.



---------------------------------------------------------------------
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]

Reply via email to