Override log level (java.util.logging) with JVM-argument?
Asked Answered
H

1

8

Is it possible to override/set log level of java.util.logging.Logger by passing an JVM option on start of the application?

Hermes answered 19/3, 2013 at 8:24 Comment(3)
Try #470930. You can get a clue from that.Afflux
this may be helpful: #2160971Sacrament
Does this answer your question? Is there a command line option for setting the default log level in JavaSacrament
S
3

There are the following system properties available where you can configure log levels of loggers and initialisation logic.

  • java.util.logging.manager
    • You can define your own LogManager
  • java.util.logging.config.class
    • Custom logging configuration as a Class file
  • java.util.logging.config.file
    • Custom logging configuration as configuration file

The LogManager documentation has more information on them available, http://docs.oracle.com/javase/6/docs/api/java/util/logging/LogManager.html

Serbocroatian answered 19/3, 2013 at 9:8 Comment(1)
Thanks, you verified what I believed as well.Hermes

© 2022 - 2024 — McMap. All rights reserved.