<div dir="ltr"><div>For logback I have always wanted to have better control over the automatic initialization. </div><div><br></div><div>That is I wish the automatic init followed something more similar to the ServiceLoader in Java:</div>
<div><a href="http://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html">http://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html</a><br></div><div><br></div><div>That is a resource should be used to point to what code should do the initialization instead of having to use system properties or hijacking the already loaded config.</div>
<div>Basically I want the auto configuration to load some Java code before it does the default which according to the manual is first load logback.groovy, then logback.xml, etc.</div><div><br></div><div>I original asked this question on StackOverflow but after reading the documentation I think its a missing feature so I decided w/ the mailing list (apologies for crossposting).</div>
<div><div><a href="http://stackoverflow.com/questions/22335441/configure-logback-xml-to-defer-to-java-configuration">http://stackoverflow.com/questions/22335441/configure-logback-xml-to-defer-to-java-configuration</a></div>
</div><div><br></div><div><br></div><div>Cheers,</div><div>-Adam</div><div><br></div>-- <br>CTO<br>SnapHop (<a href="http://snaphop.com" target="_blank">snaphop.com</a>)<br>(twitter) @agentgt (linkedin) <a href="http://www.linkedin.com/in/agentgt" target="_blank">http://www.linkedin.com/in/agentgt</a> (cell) 781-883-5182
</div>