If you want an easy setup add lombok to your project, then annotate your controller class with @Slf4j, and you're done. In your code call
log.info("");
No initialization of the logger is needed in this approach