Methods for Logger Class

The table lists the methods for the Logger class.

Logger Class

Method Return Value Description
fatal(String message)
Void Logs the given messages at the fatal logging level.
error(String message)
Void Logs the given messages at the error logging level.
warn(String message)
Void Logs the given messages at the warn logging level.
info(String message)
Void Logs the given messages at the info logging level.
debug(String message)
Void Logs the given messages at the debug logging level.
trace(String message)
Void Logs the given messages at the trace logging level.
isFatalEnabled()
Boolean Checks whether the Fatal logging level is enabled. It returns true if the logging level is enabled, and false otherwise.
isErrorEnabled()
Boolean Checks whether the Error logging level is enabled. It returns true if the logging level is enabled, and false otherwise.
isWarnEnabled()
Boolean Checks whether the Warn logging level is enabled. It returns true if the logging level is enabled, and false otherwise.
isInfoEnabled()
Boolean Checks whether the Info logging level is enabled. It returns true if the logging level is enabled, and false otherwise.
isDebugEnabled()
Boolean Checks whether the Debug logging level is enabled. It returns true if the logging level is enabled, and false otherwise.
isTraceEnabled()
Boolean Checks whether the Trace logging level is enabled. It returns true if the logging level is enabled, and false otherwise.