java.lang.Object
org.seppiko.glf.event.DefaultLogger
- All Implemented Interfaces:
Logger
A Logger implementation class for registration caller.
- Author:
- Leonard Woo
-
Field Summary
Fields inherited from interface org.seppiko.glf.api.Logger
ROOT_LOGGER_NAME -
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 toLogger.debug(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.debug(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.debug(String, Object[], Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.debug(String, Object, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.debug(String, Throwable)method except that the marker data is also taken into consideration.delegate()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 toLogger.error(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.error(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.error(String, Object[], Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.error(String, Object, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.error(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 toLogger.fatal(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.fatal(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.fatal(String, Object[], Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.fatal(String, Object, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.fatal(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 toLogger.info(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.info(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.info(String, Object[], Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.info(String, Object, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.info(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 toLogger.isDebugEnabled()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 toLogger.isErrorEnabled()method except that the marker data is also taken into account.booleanIs the logger instance enabled for the FATAL level?booleanisFatalEnabled(Marker marker) Similar toLogger.isFatalEnabled()method except that the marker data is also taken into account.booleanIs the logger instance enabled for the INFO level?booleanisInfoEnabled(Marker marker) Similar toLogger.isInfoEnabled()method except that the marker data is also taken into account.booleanIs the logger instance enabled for the TRACE level?booleanisTraceEnabled(Marker marker) Similar toLogger.isTraceEnabled()method except that the marker data is also taken into account.booleanIs the logger instance enabled for the WARN level?booleanisWarnEnabled(Marker marker) Similar toLogger.isWarnEnabled()method except that the marker data is also taken into account.voidsetDelegate(Logger delegate) 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 toLogger.trace(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.trace(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.trace(String, Object[], Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.trace(String, Object, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.trace(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 toLogger.warn(String, Object)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.warn(String, Object...)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.warn(String, Object[], Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.warn(String, Object, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toLogger.warn(String, Throwable)method except that the marker data is also taken into consideration.
-
Method Details
-
getName
Description copied from interface:LoggerReturn the name of thisLoggerinstance. -
setDelegate
-
delegate
-
atLevel
Description copied from interface:LoggerMake a newLoggerEventBuilderinstance as appropriate for this logger and the desiredLevelpassed as parameter. If this Logger is disabled for the given Level, then aNOPLoggerEventBuilderis returned.- Specified by:
atLevelin interfaceLogger- Parameters:
level- desired level for the event builder.- Returns:
- a new
LoggerEventBuilderinstance as appropriate for this logger.
-
isEnable
Description copied from interface:LoggerReturns whether this Logger is enabled for a givenLevel. -
isEnable
Description copied from interface:Logger -
isTraceEnabled
public boolean isTraceEnabled()Description copied from interface:LoggerIs the logger instance enabled for the TRACE level?- Specified by:
isTraceEnabledin interfaceLogger- Returns:
- True if this Logger is enabled for the TRACE level, false otherwise.
-
isTraceEnabled
Description copied from interface:LoggerSimilar toLogger.isTraceEnabled()method except that the marker data is also taken into account.- Specified by:
isTraceEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the TRACE level, false otherwise.
-
trace
Description copied from interface:LoggerLog a message at the TRACE level according to the specified format and arguments. -
trace
Description copied from interface:LoggerLog a message at the TRACE level according to the specified format and argument. -
trace
Description copied from interface:LoggerLog a message at the TRACE level according to the specified format and arguments. -
trace
Description copied from interface:LoggerLog an exception (throwable) at the TRACE level with an accompanying message. -
trace
Description copied from interface:LoggerLog a message at the TRACE level according to the specified format and argument and an exception (throwable) with an accompanying message. -
trace
Description copied from interface:LoggerLog a message at the TRACE level according to the specified format and arguments and an exception (throwable) with an accompanying message. -
trace
Description copied from interface:LoggerLog a message with the specific Marker at the TRACE level. -
trace
Description copied from interface:LoggerThis method is similar toLogger.trace(String, Object)method except that the marker data is also taken into consideration. -
trace
Description copied from interface:LoggerThis method is similar toLogger.trace(String, Object...)method except that the marker data is also taken into consideration. -
trace
Description copied from interface:LoggerThis method is similar toLogger.trace(String, Throwable)method except that the marker data is also taken into consideration. -
trace
Description copied from interface:LoggerThis method is similar toLogger.trace(String, Object, Throwable)method except that the marker data is also taken into consideration. -
trace
Description copied from interface:LoggerThis method is similar toLogger.trace(String, Object[], Throwable)method except that the marker data is also taken into consideration. -
atTrace
Description copied from interface:LoggerEntry point for fluent-logging forLevel.TRACElevel. -
isDebugEnabled
public boolean isDebugEnabled()Description copied from interface:LoggerIs the logger instance enabled for the DEBUG level?- Specified by:
isDebugEnabledin interfaceLogger- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
-
isDebugEnabled
Description copied from interface:LoggerSimilar toLogger.isDebugEnabled()method except that the marker data is also taken into account.- Specified by:
isDebugEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
-
debug
Description copied from interface:LoggerLog a message at the DEBUG level according to the specified format and arguments. -
debug
Description copied from interface:LoggerLog a message at the DEBUG level according to the specified format and argument. -
debug
Description copied from interface:LoggerLog a message at the DEBUG level according to the specified format and arguments. -
debug
Description copied from interface:LoggerLog an exception (throwable) at the DEBUG level with an accompanying message. -
debug
Description copied from interface:LoggerLog a message at the DEBUG level according to the specified format and argument and an exception (throwable) with an accompanying message. -
debug
Description copied from interface:LoggerLog a message at the DEBUG level according to the specified format and arguments and an exception (throwable) with an accompanying message. -
debug
Description copied from interface:LoggerLog a message with the specific Marker at the DEBUG level. -
debug
Description copied from interface:LoggerThis method is similar toLogger.debug(String, Object)method except that the marker data is also taken into consideration. -
debug
Description copied from interface:LoggerThis method is similar toLogger.debug(String, Object...)method except that the marker data is also taken into consideration. -
debug
Description copied from interface:LoggerThis method is similar toLogger.debug(String, Throwable)method except that the marker data is also taken into consideration. -
debug
Description copied from interface:LoggerThis method is similar toLogger.debug(String, Object, Throwable)method except that the marker data is also taken into consideration. -
debug
Description copied from interface:LoggerThis method is similar toLogger.debug(String, Object[], Throwable)method except that the marker data is also taken into consideration. -
atDebug
Description copied from interface:LoggerEntry point for fluent-logging forLevel.DEBUGlevel. -
isInfoEnabled
public boolean isInfoEnabled()Description copied from interface:LoggerIs the logger instance enabled for the INFO level?- Specified by:
isInfoEnabledin interfaceLogger- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
-
isInfoEnabled
Description copied from interface:LoggerSimilar toLogger.isInfoEnabled()method except that the marker data is also taken into account.- Specified by:
isInfoEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
-
info
Description copied from interface:LoggerLog a message at the INFO level according to the specified format and arguments. -
info
Description copied from interface:LoggerLog a message at the INFO level according to the specified format and argument. -
info
Description copied from interface:LoggerLog a message at the INFO level according to the specified format and arguments. -
info
Description copied from interface:LoggerLog an exception (throwable) at the INFO level with an accompanying message. -
info
Description copied from interface:LoggerLog a message at the INFO level according to the specified format and argument and an exception (throwable) with an accompanying message. -
info
Description copied from interface:LoggerLog a message at the INFO level according to the specified format and arguments and an exception (throwable) with an accompanying message. -
info
Description copied from interface:LoggerLog a message with the specific Marker at the INFO level. -
info
Description copied from interface:LoggerThis method is similar toLogger.info(String, Object)method except that the marker data is also taken into consideration. -
info
Description copied from interface:LoggerThis method is similar toLogger.info(String, Object...)method except that the marker data is also taken into consideration. -
info
Description copied from interface:LoggerThis method is similar toLogger.info(String, Throwable)method except that the marker data is also taken into consideration. -
info
Description copied from interface:LoggerThis method is similar toLogger.info(String, Object, Throwable)method except that the marker data is also taken into consideration. -
info
Description copied from interface:LoggerThis method is similar toLogger.info(String, Object[], Throwable)method except that the marker data is also taken into consideration. -
atInfo
Description copied from interface:LoggerEntry point for fluent-logging forLevel.INFOlevel. -
isWarnEnabled
public boolean isWarnEnabled()Description copied from interface:LoggerIs the logger instance enabled for the WARN level?- Specified by:
isWarnEnabledin interfaceLogger- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
-
isWarnEnabled
Description copied from interface:LoggerSimilar toLogger.isWarnEnabled()method except that the marker data is also taken into account.- Specified by:
isWarnEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
-
warn
Description copied from interface:LoggerLog a message at the WARN level according to the specified format and arguments. -
warn
Description copied from interface:LoggerLog a message at the WARN level according to the specified format and argument. -
warn
Description copied from interface:LoggerLog a message at the WARN level according to the specified format and arguments. -
warn
Description copied from interface:LoggerLog an exception (throwable) at the WARN level with an accompanying message. -
warn
Description copied from interface:LoggerLog a message at the WARN level according to the specified format and argument and an exception (throwable) with an accompanying message. -
warn
Description copied from interface:LoggerLog a message at the WARN level according to the specified format and arguments and an exception (throwable) with an accompanying message. -
warn
Description copied from interface:LoggerLog a message with the specific Marker at the WARN level. -
warn
Description copied from interface:LoggerThis method is similar toLogger.warn(String, Object)method except that the marker data is also taken into consideration. -
warn
Description copied from interface:LoggerThis method is similar toLogger.warn(String, Object...)method except that the marker data is also taken into consideration. -
warn
Description copied from interface:LoggerThis method is similar toLogger.warn(String, Throwable)method except that the marker data is also taken into consideration. -
warn
Description copied from interface:LoggerThis method is similar toLogger.warn(String, Object, Throwable)method except that the marker data is also taken into consideration. -
warn
Description copied from interface:LoggerThis method is similar toLogger.warn(String, Object[], Throwable)method except that the marker data is also taken into consideration. -
atWarn
Description copied from interface:LoggerEntry point for fluent-logging forLevel.WARNlevel. -
isErrorEnabled
public boolean isErrorEnabled()Description copied from interface:LoggerIs the logger instance enabled for the ERROR level?- Specified by:
isErrorEnabledin interfaceLogger- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
isErrorEnabled
Description copied from interface:LoggerSimilar toLogger.isErrorEnabled()method except that the marker data is also taken into account.- Specified by:
isErrorEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
error
Description copied from interface:LoggerLog a message at the ERROR level according to the specified format and arguments. -
error
Description copied from interface:LoggerLog a message at the ERROR level according to the specified format and argument. -
error
Description copied from interface:LoggerLog a message at the ERROR level according to the specified format and arguments. -
error
Description copied from interface:LoggerLog an exception (throwable) at the ERROR level with an accompanying message. -
error
Description copied from interface:LoggerLog a message at the ERROR level according to the specified format and argument and an exception (throwable) with an accompanying message. -
error
Description copied from interface:LoggerLog a message at the ERROR level according to the specified format and arguments and an exception (throwable) with an accompanying message. -
error
Description copied from interface:LoggerLog a message with the specific Marker at the ERROR level. -
error
Description copied from interface:LoggerThis method is similar toLogger.error(String, Object)method except that the marker data is also taken into consideration. -
error
Description copied from interface:LoggerThis method is similar toLogger.error(String, Object...)method except that the marker data is also taken into consideration. -
error
Description copied from interface:LoggerThis method is similar toLogger.error(String, Throwable)method except that the marker data is also taken into consideration. -
error
Description copied from interface:LoggerThis method is similar toLogger.error(String, Object, Throwable)method except that the marker data is also taken into consideration. -
error
Description copied from interface:LoggerThis method is similar toLogger.error(String, Object[], Throwable)method except that the marker data is also taken into consideration. -
atError
Description copied from interface:LoggerEntry point for fluent-logging forLevel.ERRORlevel. -
isFatalEnabled
public boolean isFatalEnabled()Description copied from interface:LoggerIs the logger instance enabled for the FATAL level?- Specified by:
isFatalEnabledin interfaceLogger- Returns:
- True if this Logger is enabled for the FATAL level, false otherwise.
-
isFatalEnabled
Description copied from interface:LoggerSimilar toLogger.isFatalEnabled()method except that the marker data is also taken into account.- Specified by:
isFatalEnabledin interfaceLogger- Parameters:
marker- The marker data to take into consideration.- Returns:
- True if this Logger is enabled for the FATAL level, false otherwise.
-
fatal
Description copied from interface:LoggerLog a message at the FATAL level according to the specified format and arguments. -
fatal
Description copied from interface:LoggerLog a message at the FATAL level according to the specified format and argument. -
fatal
Description copied from interface:LoggerLog a message at the FATAL level according to the specified format and arguments. -
fatal
Description copied from interface:LoggerLog an exception (throwable) at the FATAL level with an accompanying message. -
fatal
Description copied from interface:LoggerLog a message at the FATAL level according to the specified format and argument and an exception (throwable) with an accompanying message. -
fatal
Description copied from interface:LoggerLog a message at the FATAL level according to the specified format and arguments and an exception (throwable) with an accompanying message. -
fatal
Description copied from interface:LoggerLog a message with the specific Marker at the FATAL level. -
fatal
Description copied from interface:LoggerThis method is similar toLogger.fatal(String, Object)method except that the marker data is also taken into consideration. -
fatal
Description copied from interface:LoggerThis method is similar toLogger.fatal(String, Object...)method except that the marker data is also taken into consideration. -
fatal
Description copied from interface:LoggerThis method is similar toLogger.fatal(String, Throwable)method except that the marker data is also taken into consideration. -
fatal
Description copied from interface:LoggerThis method is similar toLogger.fatal(String, Object, Throwable)method except that the marker data is also taken into consideration. -
fatal
Description copied from interface:LoggerThis method is similar toLogger.fatal(String, Object[], Throwable)method except that the marker data is also taken into consideration. -
atFatal
Description copied from interface:LoggerEntry point for fluent-logging forLevel.FATALlevel.
-