import lombok.extern.slf4j.Slf4j; @lombok.extern.slf4j.Slf4j class LoggerSlf4j { private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4j.class); () { } LoggerSlf4j() { super(); } } @Slf4j class LoggerSlf4jWithImport { private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jWithImport.class); () { } LoggerSlf4jWithImport() { super(); } } @Slf4j enum LoggerSlf4jWithEnum { CONSTANT(), private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jWithEnum.class); () { } LoggerSlf4jWithEnum() { super(); } } class LoggerSlf4jWithInnerEnum { @Slf4j enum Inner { CONSTANT(), private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Inner.class); () { } Inner() { super(); } } LoggerSlf4jWithInnerEnum() { super(); } } class LoggerSlf4jOuter { static @lombok.extern.slf4j.Slf4j class Inner { private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Inner.class); () { } Inner() { super(); } } LoggerSlf4jOuter() { super(); } } @Slf4j(topic = "DifferentLogger") class LoggerSlf4jWithDifferentLoggerName { private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger("DifferentLogger"); () { } LoggerSlf4jWithDifferentLoggerName() { super(); } } @Slf4j(topic = LoggerSlf4jWithStaticField.TOPIC) class LoggerSlf4jWithStaticField { private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jWithStaticField.TOPIC); static final String TOPIC = "StaticField"; () { } LoggerSlf4jWithStaticField() { super(); } } @Slf4j(topic = (LoggerSlf4jWithTwoStaticFields.TOPIC + LoggerSlf4jWithTwoStaticFields.TOPIC)) class LoggerSlf4jWithTwoStaticFields { private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger((LoggerSlf4jWithTwoStaticFields.TOPIC + LoggerSlf4jWithTwoStaticFields.TOPIC)); static final String TOPIC = "StaticField"; () { } LoggerSlf4jWithTwoStaticFields() { super(); } }