Logging is imperative for good code. In almost all cases, using standard output is not recommended. Thus, I believe it is necessary to add a logging library.
I am thinking slf4j and Lombok can be used. In this case, a logger can be created as follows:
@Slf4j
public class Foo {
public void bar() {
log.info("Inside bar");
}
}
Logging is imperative for good code. In almost all cases, using standard output is not recommended. Thus, I believe it is necessary to add a logging library.
I am thinking slf4j and Lombok can be used. In this case, a logger can be created as follows: