Lombok has annotations for that. Annotate your class with @Slf4j and a static log fiedl will be generated.