Set the log4j.configuration property at startup: java -Dlog4j.configuration=<path-to-config-file>/log4j.properties MyApp ...
See also chapter 'Default Initialization Procedure' in http://jakarta.apache.org/log4j/docs/manual.html -- Thomas | -----Original Message----- | From: Slimane Zouggari [mailto:[EMAIL PROTECTED]] | Sent: 14 May 2002 09:31 | To: [EMAIL PROTECTED] | Subject: [Newbie] log4j.properties outside a jar | | | Hi, | | When I use my app with log4j.properties inside my *.jar, it works without | any problem. But, when I try to remove that file from the jar and | put it in | the same directory of the *.jar, it doesn't work anymore... | | Could you, please, explain me (or point me to a website that does explain | this) how I can use the file outside the jar ? | | Thanks in advance, | Slimane | | | -- | To unsubscribe, e-mail: | <mailto:[EMAIL PROTECTED]> | For additional commands, e-mail: | <mailto:[EMAIL PROTECTED]> | | ************************************************************************* Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved. The information supplied in this email should be treated in confidence. No liability whatsoever is accepted for any loss or damage suffered as a result of accessing this message or any attachments. ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>