Yes, define the log4j.configuration property
java -Dlog4j.configuration=file:/path/to/log4j.properties myApp
Note that the property value must be a URL.
For more information, see the section "Initialization Procedure by Default" in the Log4j manual .
Alexander Pogrebnyak Sep 12 '11 at 15:52 2011-09-12 15:52
source share