1 2 3 4 5 6 7 8 9
import lombok.extern.slf4j.Slf4j; public class LoggerSlf4jInAnonymousClass { Object annonymous = new Object() { @Slf4j class Inner { } }; }