
Hello Rob, There should be no status messages printed during automatic (default) configuration, unless errors occur. Are you saying that automatic configuration using logback.xml fails because of missing variables which you fill in when you call doConfigure()? If you know how to find the configuration file, why don't you rename "logback.xml" to something else so that it does not get picked up? BTW, there is no way to disable automatic configuration. However, you can set a system property to specify a different configuration file URL. For more details, search for "Specifying the location of the default configuration file as a system property" in http://logback.qos.ch/manual/joran.html Rob Ross wrote:
Is there a way to disable the auto-configuration at startup? One of the first things my app does is locate the right configuration file (logback.xml) to use for the current environment and calls doConfigure().
But, when the app first starts up, it automatically configures Logback and prints out the debug information to System.out. Since I immediately re-configure logback, this seems like a waste and the status messages are also extraneous.
Is there a way to suppress the auto-configuration at startup so I can handle it myself? Or at least not print out those auto-configuration messages on System.out?
Thanks!
Rob
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch