Logging with Project Lombok
Normally, when we use a Logging framework like Log4J, Logback or Simple Logging Facade for Java (SLF4J) for these Logging frameworks in a class, we need declare for example as below:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
package com.huongdanjava.lombok; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Example { public static final Logger LOGGER = LoggerFactory.getLogger(Example.class); public void print(String message) { LOGGER.info(message); } } |
But with Project Lombok, we don’t need to do that. When using Project… Read More



