Hi Martin, Someone shared this code already: (Some TODOs but I didn't finish cleaning it up myself, but it;'s just some missing switch statements and reading resource bundles) http://www.logicbig.com/tutorials/core-java-tutorial/ Not much code but it would be nice to have this built into logging libraries this code can be compiled with -source/-target compatible with older JVM, will be automatically ignored by older JVMs that do not recognize the new service declaration in the manifest.java-9-changes/platform- logging/
A standard prefix to work around recursion with stdout is one possible fix, but modern logging APIs make a lot of effort to reduce per-call overhead so copying/splitting all message strings can be significant...
maybe I could make my app check the logging config at startup, and only enable the stdout->logger redirection if the logging API's stdout appender is not enabled. I guess Logback's LoggerContextListener allows me to be notified if the configuration changes to I can enable/disable that as needed.
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
logback-user mailing list
logback-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user