Proposed solution at https://github.com/JamesStauffer/slf4j/commits/master This solution seemed to work well on an internal codebase.