I've gone through the short manual bundled with log4j... I was a bit stumped because I've mistaken the System property for the environment variable... I tried to add an environment variable by doing this: SET log4j.configuration=file:/c:/myprops.properties I finally figured how to make it work by using this: java -Dlog4j.configuration=file:/c:/myprops.properties
I'm wondering if there a way to make a default setting (like placing it in a env variable) that can be overriden firstly by a system property and secondly by programmatic setting (PropertyConfigurator.configure). That way, each class with a main method doesn't need to call configure to set the properties file URL. The -D option is not also convenient especially if your working in an IDE environment. (I'm using Eclipse, and to set an environment property, you have to set the System property for every class you intend to run...) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
