What variables do I have to set/pass as arguments to the JVM to get Log4j to run properly? And by properly I mean not complain and print to the console. Can I see a typical example?
Note: I need to avoid creating a log4j.properties file in the application.
Do you have a log4j configuration file ? Just reference it using
where {path to file} should be prefixed with
file:Edit: If you are working with log4j2, you need to use
Taken from answer https://stackoverflow.com/a/34001970/552525