When we write the code necessary to add a log to print, every time you do not want to write private final Logger logger = LoggerFactory.getLogger (XXX.class); you can use an annotation @ Slf4j this comment
maven coordinates:
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>