Howdy,
You could always read the log4j configuration file yourself, using just the normal 
java.util.Properties class.  Look for properties whose name ends in "File", and try to 
do a new File(...) on the value of these properties.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Yves Desfoss�s [mailto:[EMAIL PROTECTED]
>Sent: Saturday, March 29, 2003 12:29 PM
>To: [EMAIL PROTECTED]
>Subject: Load configuration without instantiating ecverything
>
>Hi,
>
>Is there a way to read the log4J configuration, I mean all the loggers
>and the Appenders, either from a property file or a XML file without
>instantiating and initializing everything.
>
>The problem is when I call:
>       Enumeration e = LogManager.getCurrentLoggers();
>It loads everything in memory and initializes all the loggers found in
>the config files.
>
>The reason I want to do that is to verify that the paths configured in
>my DailyRollingFileAppender and RollingFileAppender exist, because if
>they don't exist, I would prefer to create them before LOG4J throws an
>exception.
>
>Is there any other way to be sure that my paths exists before Log4j
>tries to instantiaite those loggers?
>
>Yves Desfoss�s
>SOL-YD Informatique Inc.
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to