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