Interface VitamLogger
- All Known Implementing Classes:
AbstractVitamLogger
-
Method Summary
Modifier and TypeMethodDescriptionvoidLog a message at the DEBUG level.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.voidLog an exception (throwable) at the DEBUG level with an accompanying message.voidLog an exception (throwable) at the DEBUG level.voidLog a message at the ERROR level.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.voidLog an exception (throwable) at the ERROR level with an accompanying message.voidLog an exception (throwable) at the ERROR level.getLevel()Get the log level of this loggervoidLog a message at the INFO level.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.voidLog an exception (throwable) at the INFO level with an accompanying message.voidLog an exception (throwable) at the INFO level.booleanIs the logger instance enabled for the DEBUG level?booleanisEnabled(VitamLogLevel level) Is the logger instance enabled for the specifiedlevel?booleanIs the logger instance enabled for the ERROR level?booleanIs the logger instance enabled for the INFO level?booleanIs the logger instance enabled for the TRACE level?booleanIs the logger instance enabled for the WARN level?voidlog(VitamLogLevel level, String msg) Log a message at the specifiedlevel.voidlog(VitamLogLevel level, String format, Object arg) Log a message at the specifiedlevelaccording to the specified format and argument.voidlog(VitamLogLevel level, String format, Object... arguments) Log a message at the specifiedlevelaccording to the specified format and arguments.voidlog(VitamLogLevel level, String format, Object argA, Object argB) Log a message at the specifiedlevelaccording to the specified format and arguments.voidlog(VitamLogLevel level, String msg, Throwable t) Log an exception (throwable) at the specifiedlevelwith an accompanying message.voidlog(VitamLogLevel level, Throwable t) Log an exception (throwable) at the specifiedlevel.name()Return the name of thisVitamLoggerinstance.voidsetLevel(VitamLogLevel level) Change the log level of this loggervoidTime InfovoidTime InfovoidLog a message at the TRACE level.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.voidLog an exception (throwable) at the TRACE level with an accompanying message.voidLog an exception (throwable) at the TRACE level.voidLog a message at the WARN level.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.voidLog an exception (throwable) at the WARN level with an accompanying message.voidLog an exception (throwable) at the WARN level.
-
Method Details
-
name
String name()Return the name of thisVitamLoggerinstance.- Returns:
- name of this logger instance
-
setLevel
Change the log level of this logger- Parameters:
level-
-
getLevel
VitamLogLevel getLevel()Get the log level of this logger- Returns:
- level
-
timeInfo
Time Info- Parameters:
msg-
-
timeInfo
Time Info- Parameters:
format-arguments-
-
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.
-
trace
Log a message at the TRACE level.- Parameters:
msg- the message string to be logged
-
trace
Log a message at the TRACE level according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the TRACE level.
- Parameters:
format- the format stringarg- the argument
-
trace
Log a message at the TRACE level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the TRACE level.
- Parameters:
format- the format stringargA- the first argumentargB- the second argument
-
trace
Log a message at the TRACE level according to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the TRACE level. However, this variant incurs the hidden (and relatively small) cost of creating an
Object[]before invoking the method, even if this logger is disabled for TRACE. The variants takingoneandtwoarguments exist solely in order to avoid this hidden cost.- Parameters:
format- the format stringarguments- a list of 3 or more arguments
-
trace
Log an exception (throwable) at the TRACE level with an accompanying message.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
trace
Log an exception (throwable) at the TRACE level.- Parameters:
t- the exception (throwable) to log
-
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.
-
debug
Log a message at the DEBUG level.- Parameters:
msg- the message string to be logged
-
debug
Log a message at the DEBUG level according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
- Parameters:
format- the format stringarg- the argument
-
debug
Log a message at the DEBUG level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
- Parameters:
format- the format stringargA- the first argumentargB- the second argument
-
debug
Log a message at the DEBUG level according to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the DEBUG level. However, this variant incurs the hidden (and relatively small) cost of creating an
Object[]before invoking the method, even if this logger is disabled for DEBUG. The variants takingoneandtwoarguments exist solely in order to avoid this hidden cost.- Parameters:
format- the format stringarguments- a list of 3 or more arguments
-
debug
Log an exception (throwable) at the DEBUG level with an accompanying message.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
debug
Log an exception (throwable) at the DEBUG level.- Parameters:
t- the exception (throwable) to log
-
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.
-
info
Log a message at the INFO level.- Parameters:
msg- the message string to be logged
-
info
Log a message at the INFO level according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the INFO level.
- Parameters:
format- the format stringarg- the argument
-
info
Log a message at the INFO level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the INFO level.
- Parameters:
format- the format stringargA- the first argumentargB- the second argument
-
info
Log a message at the INFO level according to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the INFO level. However, this variant incurs the hidden (and relatively small) cost of creating an
Object[]before invoking the method, even if this logger is disabled for INFO. The variants takingoneandtwoarguments exist solely in order to avoid this hidden cost.- Parameters:
format- the format stringarguments- a list of 3 or more arguments
-
info
Log an exception (throwable) at the INFO level with an accompanying message.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
info
Log an exception (throwable) at the INFO level.- Parameters:
t- the exception (throwable) to log
-
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.
-
warn
Log a message at the WARN level.- Parameters:
msg- the message string to be logged
-
warn
Log a message at the WARN level according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the WARN level.
- Parameters:
format- the format stringarg- the argument
-
warn
Log a message at the WARN level according to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the WARN level. However, this variant incurs the hidden (and relatively small) cost of creating an
Object[]before invoking the method, even if this logger is disabled for WARN. The variants takingoneandtwoarguments exist solely in order to avoid this hidden cost.- Parameters:
format- the format stringarguments- a list of 3 or more arguments
-
warn
Log a message at the WARN level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the WARN level.
- Parameters:
format- the format stringargA- the first argumentargB- the second argument
-
warn
Log an exception (throwable) at the WARN level with an accompanying message.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
warn
Log an exception (throwable) at the WARN level.- Parameters:
t- the exception (throwable) to log
-
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.
-
error
Log a message at the ERROR level.- Parameters:
msg- the message string to be logged
-
error
Log a message at the ERROR level according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the ERROR level.
- Parameters:
format- the format stringarg- the argument
-
error
Log a message at the ERROR level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the ERROR level.
- Parameters:
format- the format stringargA- the first argumentargB- the second argument
-
error
Log a message at the ERROR level according to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the ERROR level. However, this variant incurs the hidden (and relatively small) cost of creating an
Object[]before invoking the method, even if this logger is disabled for ERROR. The variants takingoneandtwoarguments exist solely in order to avoid this hidden cost.- Parameters:
format- the format stringarguments- a list of 3 or more arguments
-
error
Log an exception (throwable) at the ERROR level with an accompanying message.- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
error
Log an exception (throwable) at the ERROR level.- Parameters:
t- the exception (throwable) to log
-
isEnabled
Is the logger instance enabled for the specifiedlevel?- Parameters:
level-- Returns:
- True if this Logger is enabled for the specified
level, false otherwise.
-
log
Log a message at the specifiedlevel.- Parameters:
level-msg- the message string to be logged
-
log
Log a message at the specifiedlevelaccording to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the specified
level.- Parameters:
level-format- the format stringarg- the argument
-
log
Log a message at the specifiedlevelaccording to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the specified
level.- Parameters:
level-format- the format stringargA- the first argumentargB- the second argument
-
log
Log a message at the specifiedlevelaccording to the specified format and arguments.This form avoids superfluous string concatenation when the logger is disabled for the specified
level. However, this variant incurs the hidden (and relatively small) cost of creating anObject[]before invoking the method, even if this logger is disabled for the specifiedlevel. The variants takingoneandtwoarguments exist solely in order to avoid this hidden cost.- Parameters:
level-format- the format stringarguments- a list of 3 or more arguments
-
log
Log an exception (throwable) at the specifiedlevelwith an accompanying message.- Parameters:
level-msg- the message accompanying the exceptiont- the exception (throwable) to log
-
log
Log an exception (throwable) at the specifiedlevel.- Parameters:
level-t- the exception (throwable) to log
-