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 wleana <wl...@yahoo.com> on 2003/04/14 08:48:32 UTC

configure programmatically if properties not found, how to?

Hi,

I want to have a duplicate configuration programed into source code 
to cover the situation when the properties file is not found. 
Wondering how to do it since I am not calling 
PropertyConfiguration.configure() explicitly in the code. Then how do 
I know if it succeeds or fails?  So maybe I should make that call 
explicitly? But if I do that, seems that I need to pass in the 
string "log4j.properties" directly to it?  And also, since the 
PropertyConfiguation.configure(String configFileName) returns void, 
how can I know if it has found the file or not?

thanks,-wleana


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