SL4J
Logging facade, which hides the actual logging library being used.
Usage
public class LoginHandler {
private static final Logger LOGGER = LoggerFactory.getLogger(LoginHandler.class);
public void login(String user) {
LOGGER.debug("User {} logged in", user);
}
}
Logging Levels
Levels are defined by the Logger interface.
Trace
Debug
Info
Warn
Error
Last updated
Was this helpful?