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 "Ebersole, Steven" <st...@vignette.com> on 2003/05/08 15:09:39 UTC
RE: PropertyConfigurator
Not quite sure how this is a question related to the development of log4j?
This should go to the log4j-user mailing list.
Have you read the documentation at all? The basic idea is to create a file
named log4j.properties containing your logging configuration information and
place that file in the classpath.
|-----Original Message-----
|From: Tan Yoke Yew [mailto:yytan@infopro.com.my]
|Sent: Thursday, May 08, 2003 3:46 AM
|To: log4j-dev@jakarta.apache.org
|Subject: PropertyConfigurator
|
|
|hi;
|
|As i know, PropertyConfigurator to parse a configuration
|file and set up
|logging accordingly.
|Normally this PropertyConfigurator will reside in "main
|method" or "other
|method" declared in our class.
|Now, if my class doesn't have main method, where can i put
|PropertyConfigurator? I meant, where is the
|suitable place to put this line of code PropertyConfigurator.
|Can i put somewhere else? I am stuck here. I need some
|guides here, thanks
|in advance!
|
|
|Regards;
|yoke yew
|
|
|-----------------------------------------------------------
|----------
|To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
|For additional commands, e-mail: log4j-dev-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