I have two options for initializing Loggerinside the class.
The first way is to provide an instance Class<?>:
logger = LoggerFactory.getLogger(SignUpController.class);
and the second passes the identifier String(package and class name):
logger = LoggerFactory.getLogger("controller.SignUpController");
Questions:
What is the best way to initialize a logger for a class?
What modifiers should I use? (Access modifiers static, final)
source
share