I'm running a stand-alone Jenkins server launched from the WAR file. Jenkins advertises itself as using the java.util.logging framework for logging. I launch it as follows:
java -Djava.util.logging.config.file=mycustomlogging.properties -jar jenkins.war > jenkins.log
mycustomlogging.properties contains the following:
handlers=java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level=WARNING
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
What I expected is for all logging to go into jenkins.log and for only WARNING messages and above to be logged.
The contents of jenkins.log are as expected, but I'm also seeing a file ~/java0.log created that contains XML-formatted log statements at INFO and above.
Why is java0.log being created when I only specify a ConsoleHandler (and no FileHandler) in mycustomlogging.properties?
Is my properties file being "merged" with the default system one, which (presumably) configures a FileHandler writing to ~/java0.log? My expectation was that specifying a custom properties file would completely override the default system behavior.
Or is it likely the server code is written such that it ignore the system properties and just logs to ~/java0.log "no matter what"?
If it matters, I'm on OS X 10.10 using Java 7.