commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josef Holy <josef.h...@gmail.com>
Subject [configuration] Getting Properties from the Configuration
Date Tue, 23 Aug 2005 17:50:17 GMT
Hi,

I have the Configuration, loaded from the .properties file (so it is
actually the instanceof PropertiesConfiguration class). I need to
configure my log4j engine by calling the
PropertyConfigurator.configure(java.util.Properties) method. These
properties for the log4j are the subset of properties loaded
previously into the Configuration instance.

Is there any way how to get the java.util.Properties instance from the
Configuration? There are methods in the AbstractConfiguration class -
subset(prefix) and getProperties(key), but none of them fits my need.

 So my log4j properties seem to be locked in the Configuration and I
can't get them out of it all at once. Or am I wrong?

Thanks for any ideas or responses.

Josef.

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


Mime
View raw message