[logback-user] Programmatic configuration
stoffe at gmail.com
Wed Sep 4 08:29:02 CEST 2013
I would like to handle logback configuration programmatically - without
files (XML, Groovy, etc).
My problem is that I cant find an obvious way to override the fallback
behavior in ContextInitializer.autoConfig, which ultimately result that a
ConsoleAppender is created by BasicConfigurator (since no URL was found for
It would be nice to if BasicConfigurator could be replaced for something
else, maybe using
Maybe adding an modified copy of BasicConfigurator (but with same fully
qualified classname) first on classpath would be possible? But this feels
more like a hack.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Logback-user