xwiki/xwiki-platform — comment on commit 1b5266513d63828707713c991e87a98eb4a21091
File:  line 0
By tmortagne:

Note that you can use LoggerManager#pushLogListener and LoggerManager#popLogListener to isolate the log in the current thread without having to explicitely depends on logback.

But that's for all log so it depends if you potentially have other log. We could also extend the API to provide a specific class/logger to filter.