Thanks for confirming that. So I take it that Logback provides not mechanism for determining which LoggerContext is returned? (Or is LoggerContext itself even used?) in the meantime I'll exclude the context-selection functionality from Clogr+Logback. This means that:
- Clogr will still work as a helper class for SLF4J.
- Clogr will still allow allow configuring multiple "contexts" through Csar, but only if the SLF4J instance was obtained via Clogr.
- For all SLF4J instances not obtained via Clogr (e.g. in libraries that do not know about Clogr), the normal SLF4J resolution will be used.
Once this ticket (LOGBACK-1196) implements a service provider framework for LoggerContext is added, I'll be able to install Clogr so that third-party SLF4J libraries that have no knowledge of Clogr will still still log to the correct contexts configured by Clogr+Csar. |