- All Known Subinterfaces:
LocationLogger
- All Known Implementing Classes:
AbstractLogger,DefaultLogger,LegacyAbstractLogger
public interface Logger
The org.seppiko.glf.api.Logger interface is the main user entry point of GLF API.
It is expected that logging takes place through concrete implementations
of this interface.
- Author:
- Leonard Woo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCase-insensitive String constant used to retrieve the name of the root logger. -
Method Summary
Modifier and TypeMethodDescriptionatDebug()Entry point for fluent-logging forLevel.DEBUGlevel.atError()Entry point for fluent-logging forLevel.ERRORlevel.atFatal()Entry point for fluent-logging forLevel.FATALlevel.atInfo()Entry point for fluent-logging forLevel.INFOlevel.Make a newLoggerEventBuilderinstance as appropriate for this logger and the desiredLevelpassed as parameter.atTrace()Entry point for fluent-logging forLevel.TRACElevel.atWarn()Entry point for fluent-logging forLevel.WARNlevel.voidLog a message at the DEBUG level according to the specified format and arguments.voidLog a message at the DEBUG level according to the specified format and argument.voidLog a message at the DEBUG level according to the specified format and arguments.voidLog a message at the DEBUG level according to the specified format and arguments and an exception (throwable) with an accompanying message.voidLog a message at the DEBUG level according to the specified format and argument and an exception (throwable) with an accompanying message.voidLog an exception (throwable) at the DEBUG level with an accompanying message.voidLog a message with the specific Marker at the DEBUG level.voidThis method is similar todebug(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar todebug(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar todebug(String, Object[], Throwable)method except that the marker data is also taken into consideration.voidThis method is similar todebug(String, Object, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar todebug(String, Throwable)method except that the marker data is also taken into consideration.voidLog a message at the ERROR level according to the specified format and arguments.voidLog a message at the ERROR level according to the specified format and argument.voidLog a message at the ERROR level according to the specified format and arguments.voidLog a message at the ERROR level according to the specified format and arguments and an exception (throwable) with an accompanying message.voidLog a message at the ERROR level according to the specified format and argument and an exception (throwable) with an accompanying message.voidLog an exception (throwable) at the ERROR level with an accompanying message.voidLog a message with the specific Marker at the ERROR level.voidThis method is similar toerror(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toerror(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toerror(String, Object[], Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toerror(String, Object, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toerror(String, Throwable)method except that the marker data is also taken into consideration.voidLog a message at the FATAL level according to the specified format and arguments.voidLog a message at the FATAL level according to the specified format and argument.voidLog a message at the FATAL level according to the specified format and arguments.voidLog a message at the FATAL level according to the specified format and arguments and an exception (throwable) with an accompanying message.voidLog a message at the FATAL level according to the specified format and argument and an exception (throwable) with an accompanying message.voidLog an exception (throwable) at the FATAL level with an accompanying message.voidLog a message with the specific Marker at the FATAL level.voidThis method is similar tofatal(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar tofatal(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar tofatal(String, Object[], Throwable)method except that the marker data is also taken into consideration.voidThis method is similar tofatal(String, Object, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar tofatal(String, Throwable)method except that the marker data is also taken into consideration.getName()Return the name of thisLoggerinstance.voidLog a message at the INFO level according to the specified format and arguments.voidLog a message at the INFO level according to the specified format and argument.voidLog a message at the INFO level according to the specified format and arguments.voidLog a message at the INFO level according to the specified format and arguments and an exception (throwable) with an accompanying message.voidLog a message at the INFO level according to the specified format and argument and an exception (throwable) with an accompanying message.voidLog an exception (throwable) at the INFO level with an accompanying message.voidLog a message with the specific Marker at the INFO level.voidThis method is similar toinfo(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toinfo(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toinfo(String, Object[], Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toinfo(String, Object, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toinfo(String, Throwable)method except that the marker data is also taken into consideration.booleanIs the logger instance enabled for the DEBUG level?booleanisDebugEnabled(Marker marker) Similar toisDebugEnabled()method except that the marker data is also taken into account.booleanReturns whether this Logger is enabled for a givenLevel.booleanbooleanIs the logger instance enabled for the ERROR level?booleanisErrorEnabled(Marker marker) Similar toisErrorEnabled()method except that the marker data is also taken into account.booleanIs the logger instance enabled for the FATAL level?booleanisFatalEnabled(Marker marker) Similar toisFatalEnabled()method except that the marker data is also taken into account.booleanIs the logger instance enabled for the INFO level?booleanisInfoEnabled(Marker marker) Similar toisInfoEnabled()method except that the marker data is also taken into account.booleanIs the logger instance enabled for the TRACE level?booleanisTraceEnabled(Marker marker) Similar toisTraceEnabled()method except that the marker data is also taken into account.booleanIs the logger instance enabled for the WARN level?booleanisWarnEnabled(Marker marker) Similar toisWarnEnabled()method except that the marker data is also taken into account.voidLog a message at the TRACE level according to the specified format and arguments.voidLog a message at the TRACE level according to the specified format and argument.voidLog a message at the TRACE level according to the specified format and arguments.voidLog a message at the TRACE level according to the specified format and arguments and an exception (throwable) with an accompanying message.voidLog a message at the TRACE level according to the specified format and argument and an exception (throwable) with an accompanying message.voidLog an exception (throwable) at the TRACE level with an accompanying message.voidLog a message with the specific Marker at the TRACE level.voidThis method is similar totrace(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar totrace(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar totrace(String, Object[], Throwable)method except that the marker data is also taken into consideration.voidThis method is similar totrace(String, Object, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar totrace(String, Throwable)method except that the marker data is also taken into consideration.voidLog a message at the WARN level according to the specified format and arguments.voidLog a message at the WARN level according to the specified format and argument.voidLog a message at the WARN level according to the specified format and arguments.voidLog a message at the WARN level according to the specified format and arguments and an exception (throwable) with an accompanying message.voidLog a message at the WARN level according to the specified format and argument and an exception (throwable) with an accompanying message.voidLog an exception (throwable) at the WARN level with an accompanying message.voidLog a message with the specific Marker at the WARN level.voidThis method is similar towarn(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar towarn(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar towarn(String, Object[], Throwable)method except that the marker data is also taken into consideration.voidThis method is similar towarn(String, Object, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar towarn(String, Throwable)method except that the marker data is also taken into consideration.
-
Field Details
-
ROOT_LOGGER_NAME
Case-insensitive String constant used to retrieve the name of the root logger.- See Also:
-
-
Method Details
-
getName
String getName()Return the name of thisLoggerinstance.- Returns:
- name of this logger instance.
-
atLevel
Make a newLoggerEventBuilderinstance as appropriate for this logger and the desiredLevelpassed as parameter. If this Logger is disabled for the given Level, then aNOPLoggerEventBuilderis returned.- Parameters:
level- desired level for the event builder.- Returns:
- a new
LoggerEventBuilderinstance as appropriate for this logger.
-
isEnable
Returns whether this Logger is enabled for a givenLevel.- Parameters:
level- The level to take into consideration.- Returns:
- true if enabled, false otherwise.
-
isEnable
- Parameters:
level- The level to take into consideration.marker- The marker data to take into consideration.- Returns:
- true if enabled, false otherwise.
-
isTraceEnabled
boolean isTraceEnabled()Is the logger instance enabled for the TRACE level?- Returns:
- True if this Logger is enabled for the TRACE level, false otherwise.
-
isTraceEnabled
Similar toisTraceEnabled()method except that the marker data is also taken into account.- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the TRACE level, false otherwise.
-
trace
Log a message at the TRACE level according to the specified format and arguments.- Parameters:
message- the message string to be logged.
-
trace
Log a message at the TRACE level according to the specified format and argument.- Parameters:
message- the message string to be logged.param- the argument.
-
trace
Log a message at the TRACE level according to the specified format and arguments.- Parameters:
message- the message string to be logged.params- an array of arguments.
-
trace
Log an exception (throwable) at the TRACE level with an accompanying message.- Parameters:
message- the message string to be logged.cause- the exception (throwable) to log.
-
trace
Log a message at the TRACE level according to the specified format and argument and an exception (throwable) with an accompanying message.- Parameters:
message- the message string to be logged.param- the argument.cause- the exception (throwable) to log.
-
trace
Log a message at the TRACE level according to the specified format and arguments and an exception (throwable) with an accompanying message.- Parameters:
message- the message string to be logged.params- an array of arguments.cause- the exception (throwable) to log.
-
trace
Log a message with the specific Marker at the TRACE level.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.
-
trace
This method is similar totrace(String, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.param- the argument.
-
trace
This method is similar totrace(String, Object...)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.params- an array of arguments.
-
trace
This method is similar totrace(String, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.cause- the exception (throwable) to log.
-
trace
This method is similar totrace(String, Object, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.param- the argument.cause- the exception (throwable) to log.
-
trace
This method is similar totrace(String, Object[], Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.params- an array of arguments.cause- the exception (throwable) to log.
-
atTrace
LoggerEventBuilder atTrace()Entry point for fluent-logging forLevel.TRACElevel.- Returns:
- LoggingEventBuilder instance as appropriate for level TRACE
-
isDebugEnabled
boolean isDebugEnabled()Is the logger instance enabled for the DEBUG level?- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
-
isDebugEnabled
Similar toisDebugEnabled()method except that the marker data is also taken into account.- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
-
debug
Log a message at the DEBUG level according to the specified format and arguments.- Parameters:
message- the message string to be logged.
-
debug
Log a message at the DEBUG level according to the specified format and argument.- Parameters:
message- the message string to be logged.param- the argument.
-
debug
Log a message at the DEBUG level according to the specified format and arguments.- Parameters:
message- the message string to be logged.params- an array of arguments.
-
debug
Log an exception (throwable) at the DEBUG level with an accompanying message.- Parameters:
message- the message string to be logged.cause- the exception (throwable) to log.
-
debug
Log a message at the DEBUG level according to the specified format and argument and an exception (throwable) with an accompanying message.- Parameters:
message- the message string to be logged.param- the argument.cause- the exception (throwable) to log.
-
debug
Log a message at the DEBUG level according to the specified format and arguments and an exception (throwable) with an accompanying message.- Parameters:
message- the message string to be logged.params- an array of arguments.cause- the exception (throwable) to log.
-
debug
Log a message with the specific Marker at the DEBUG level.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.
-
debug
This method is similar todebug(String, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.param- the argument.
-
debug
This method is similar todebug(String, Object...)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.params- an array of arguments.
-
debug
This method is similar todebug(String, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.cause- the exception (throwable) to log.
-
debug
This method is similar todebug(String, Object, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.param- the argument.cause- the exception (throwable) to log.
-
debug
This method is similar todebug(String, Object[], Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.params- an array of arguments.cause- the exception (throwable) to log.
-
atDebug
LoggerEventBuilder atDebug()Entry point for fluent-logging forLevel.DEBUGlevel.- Returns:
- LoggingEventBuilder instance as appropriate for level DEBUG
-
isInfoEnabled
boolean isInfoEnabled()Is the logger instance enabled for the INFO level?- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
-
isInfoEnabled
Similar toisInfoEnabled()method except that the marker data is also taken into account.- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
-
info
Log a message at the INFO level according to the specified format and arguments.- Parameters:
message- the message string to be logged.
-
info
Log a message at the INFO level according to the specified format and argument.- Parameters:
message- the message string to be logged.param- the argument.
-
info
Log a message at the INFO level according to the specified format and arguments.- Parameters:
message- the message string to be logged.params- an array of arguments.
-
info
Log an exception (throwable) at the INFO level with an accompanying message.- Parameters:
message- the message string to be logged.cause- the exception (throwable) to log.
-
info
Log a message at the INFO level according to the specified format and argument and an exception (throwable) with an accompanying message.- Parameters:
message- the message string to be logged.param- the argument.cause- the exception (throwable) to log.
-
info
Log a message at the INFO level according to the specified format and arguments and an exception (throwable) with an accompanying message.- Parameters:
message- the message string to be logged.params- an array of arguments.cause- the exception (throwable) to log.
-
info
Log a message with the specific Marker at the INFO level.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.
-
info
This method is similar toinfo(String, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.param- the argument.
-
info
This method is similar toinfo(String, Object...)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.params- an array of arguments.
-
info
This method is similar toinfo(String, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.cause- the exception (throwable) to log.
-
info
This method is similar toinfo(String, Object, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.param- the argument.cause- the exception (throwable) to log.
-
info
This method is similar toinfo(String, Object[], Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.params- an array of arguments.cause- the exception (throwable) to log.
-
atInfo
LoggerEventBuilder atInfo()Entry point for fluent-logging forLevel.INFOlevel.- Returns:
- LoggingEventBuilder instance as appropriate for level INFO
-
isWarnEnabled
boolean isWarnEnabled()Is the logger instance enabled for the WARN level?- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
-
isWarnEnabled
Similar toisWarnEnabled()method except that the marker data is also taken into account.- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
-
warn
Log a message at the WARN level according to the specified format and arguments.- Parameters:
message- the message string to be logged.
-
warn
Log a message at the WARN level according to the specified format and argument.- Parameters:
message- the message string to be logged.param- the argument.
-
warn
Log a message at the WARN level according to the specified format and arguments.- Parameters:
message- the message string to be logged.params- an array of arguments.
-
warn
Log an exception (throwable) at the WARN level with an accompanying message.- Parameters:
message- the message string to be logged.cause- the exception (throwable) to log.
-
warn
Log a message at the WARN level according to the specified format and argument and an exception (throwable) with an accompanying message.- Parameters:
message- the message string to be logged.param- the argument.cause- the exception (throwable) to log.
-
warn
Log a message at the WARN level according to the specified format and arguments and an exception (throwable) with an accompanying message.- Parameters:
message- the message string to be logged.params- an array of arguments.cause- the exception (throwable) to log.
-
warn
Log a message with the specific Marker at the WARN level.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.
-
warn
This method is similar towarn(String, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.param- the argument.
-
warn
This method is similar towarn(String, Object...)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.params- an array of arguments.
-
warn
This method is similar towarn(String, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.cause- the exception (throwable) to log.
-
warn
This method is similar towarn(String, Object, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.param- the argument.cause- the exception (throwable) to log.
-
warn
This method is similar towarn(String, Object[], Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.params- an array of arguments.cause- the exception (throwable) to log.
-
atWarn
LoggerEventBuilder atWarn()Entry point for fluent-logging forLevel.WARNlevel.- Returns:
- LoggingEventBuilder instance as appropriate for level WARN
-
isErrorEnabled
boolean isErrorEnabled()Is the logger instance enabled for the ERROR level?- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
isErrorEnabled
Similar toisErrorEnabled()method except that the marker data is also taken into account.- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
error
Log a message at the ERROR level according to the specified format and arguments.- Parameters:
message- the message string to be logged.
-
error
Log a message at the ERROR level according to the specified format and argument.- Parameters:
message- the message string to be logged.param- the argument.
-
error
Log a message at the ERROR level according to the specified format and arguments.- Parameters:
message- the message string to be logged.params- an array of arguments.
-
error
Log an exception (throwable) at the ERROR level with an accompanying message.- Parameters:
message- the message string to be logged.cause- the exception (throwable) to log.
-
error
Log a message at the ERROR level according to the specified format and argument and an exception (throwable) with an accompanying message.- Parameters:
message- the message string to be logged.param- the argument.cause- the exception (throwable) to log.
-
error
Log a message at the ERROR level according to the specified format and arguments and an exception (throwable) with an accompanying message.- Parameters:
message- the message string to be logged.params- an array of arguments.cause- the exception (throwable) to log.
-
error
Log a message with the specific Marker at the ERROR level.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.
-
error
This method is similar toerror(String, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.param- the argument.
-
error
This method is similar toerror(String, Object...)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.params- an array of arguments.
-
error
This method is similar toerror(String, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.cause- the exception (throwable) to log.
-
error
This method is similar toerror(String, Object, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.param- the argument.cause- the exception (throwable) to log.
-
error
This method is similar toerror(String, Object[], Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.params- an array of arguments.cause- the exception (throwable) to log.
-
atError
LoggerEventBuilder atError()Entry point for fluent-logging forLevel.ERRORlevel.- Returns:
- LoggingEventBuilder instance as appropriate for level ERROR
-
isFatalEnabled
boolean isFatalEnabled()Is the logger instance enabled for the FATAL level?- Returns:
- True if this Logger is enabled for the FATAL level, false otherwise.
-
isFatalEnabled
Similar toisFatalEnabled()method except that the marker data is also taken into account.- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the FATAL level, false otherwise.
-
fatal
Log a message at the FATAL level according to the specified format and arguments.- Parameters:
message- the message string to be logged.
-
fatal
Log a message at the FATAL level according to the specified format and argument.- Parameters:
message- the message string to be logged.param- the argument.
-
fatal
Log a message at the FATAL level according to the specified format and arguments.- Parameters:
message- the message string to be logged.params- an array of arguments.
-
fatal
Log an exception (throwable) at the FATAL level with an accompanying message.- Parameters:
message- the message string to be logged.cause- the exception (throwable) to log.
-
fatal
Log a message at the FATAL level according to the specified format and argument and an exception (throwable) with an accompanying message.- Parameters:
message- the message string to be logged.param- the argument.cause- the exception (throwable) to log.
-
fatal
Log a message at the FATAL level according to the specified format and arguments and an exception (throwable) with an accompanying message.- Parameters:
message- the message string to be logged.params- an array of arguments.cause- the exception (throwable) to log.
-
fatal
Log a message with the specific Marker at the FATAL level.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.
-
fatal
This method is similar tofatal(String, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.param- the argument.
-
fatal
This method is similar tofatal(String, Object...)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.params- an array of arguments.
-
fatal
This method is similar tofatal(String, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.cause- the exception (throwable) to log.
-
fatal
This method is similar tofatal(String, Object, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.param- the argument.cause- the exception (throwable) to log.
-
fatal
This method is similar tofatal(String, Object[], Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statement.message- the message string to be logged.params- an array of arguments.cause- the exception (throwable) to log.
-
atFatal
LoggerEventBuilder atFatal()Entry point for fluent-logging forLevel.FATALlevel.- Returns:
- LoggingEventBuilder instance as appropriate for level FATAL
-