how do I specify -Dlog4j.configuration if log4j.properties is in a jar?
807580Dec 2 2009 — edited Dec 2 2009Hi,
I usually would specify the property file like this:
-Dlog4j.configuration=file:<path to log4j.properties>
However, the customer requests that deliverables be bundled in the single jar so that getResourceAsStream can be used to extract the resource data. As a consequence my log4j.properties goes into the jar. Now on the command line, what do I type in there
-Dlog4j.configuration=????
to tell log4j where to find the .properties?
Many thanks,