You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Chien Wei Tan <Ch...@calytrix.com> on 2001/09/17 06:12:21 UTC

How to configure log4j with .properties file

Hi,

Instead of configuring log4j from a ".lcf" file, is it possible to configure
using a ".properties" file?


Cheers,
cw


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


RE: How to configure log4j with .properties file

Posted by Thomas Tuft Muller <tt...@online.no>.
Yes, the PropertyConfigurator is meant to read from a properties file-URL
(default is log4j.properties), whilst the DOMConfigurator reads from an XML
file (default log4j.xml).

Hope this helps

--

Thomas


| -----Original Message-----
| From: Chien Wei Tan [mailto:Chienwei.Tan@calytrix.com]
| Sent: 17 September 2001 05:12
| To: LOG4J Users Mailing List
| Subject: How to configure log4j with .properties file
|
|
|
| Hi,
|
| Instead of configuring log4j from a ".lcf" file, is it possible
| to configure
| using a ".properties" file?
|
|
| Cheers,
| cw
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
| For additional commands, e-mail: log4j-user-help@jakarta.apache.org
|
|



*************************************************************************
Copyright ERA Technology Ltd. 2001. (www.era.co.uk). All rights reserved. 
Confidential. No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.

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