Try putting this line in your application.properties :
logging.config=file:log4j.xml
The second parameter is to pass the system variable to -Dlogging.config=file:log4j.xml
In this case, it is expected that it will be in the current directory outside the JAR file.
source share