logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ebersole, Steven" <steven.ebers...@vignette.com>
Subject RE: configuring log4j without a file? is it possible?
Date Thu, 10 Jul 2003 12:30:20 GMT
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: Michael.Teji@retail-logic.com
[mailto:Michael.Teji@retail-logic.com]
Sent: Thursday, July 10, 2003 7:20 AM
To: log4j-user@jakarta.apache.org
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: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message