
Hello Michael, Logback uses xml files to configure. No *.properties configuration functionality is available in logback, mainly because of flexibility concerns. A default initialization procedure has not been implemented yet, but we are going to add it soon, since it's a pretty useful feature. At the moment, the code you sent is the way to configure logback from a configuration file. Hope this helps... Sébastien Newcomb, Michael-P57487 a écrit :
Or, do I really have to do this:
Logger logger = LoggerFactory.getLogger(MyAppWithConfigFile.class); LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(lc); configurator.doConfigure(args[0]);
Thanks, Michael
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
-- Sébastien Pennec sebastien@qos.ch Logback: The reliable, generic, fast and flexible logging framework for Java.