ceki at qos.ch
Wed Mar 18 21:44:34 CET 2009
In the documentation relative to auto configuration , one can read:
If the configuration file is found but is ill-formed, then logback
will detect the error condition and automatically print its internal
status on the console.
So either the documentation is wrong or logback cannot find your
configuration file. In any case, you can instruct logback to print its
internal status data with the following code:
LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
See  for a full example.
Greg Flex wrote:
> Hi All,
> I was wondering if there is an easy way to test the validity of an XML
> configuration file.
> Just as an example I have this now in the config file <blah blah blah>
> JoranConfigurator doConfigure accepts it and no exception is thrown.
> Nothing gets printed or written to a file etc. however I'd like to
> detect that the config file is messed up.
> Any suggestions?
Logback: The reliable, generic, fast and flexible logging framework for Java.
More information about the Logback-user