@CompileStatic @POJO class PojoLoggerFactory extends Object
A no-Groovy wrapper around SLF4J's org.slf4j.LoggerFactory#getLogger(java.lang.Class) method`. This is to get around a bug when the bytecode generated by `groovyc` is then run through Azul's Zulu 8 JDK. The problem seems to arise from a static context invoking that method, so the fix is to instantiate this class, then use its getLogger method which then calls SLF4J's method in a non-static context 🙃
This isn't a great fix, and should be removed either if the bug in Groovy/Azul is fixed, a better workaround is discovered, or Java 8 support is dropped.
| Constructor and description |
|---|
PojoLoggerFactory() |