Interface ComponentLogger
- All Superinterfaces:
org.slf4j.Logger
The methods in this logger interface are intended to exactly mirror those methods in Logger that take a format string, but instead accepting Components.
Any args may be passed as Components as well.
- Since:
- 4.11.0
-
Field Summary
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
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 a message with the specific Marker at the DEBUG level.voidThis method is similar todebug(Component, Object)method except that the marker data is also taken into consideration.voiddebug(@NotNull org.slf4j.Marker marker, @NotNull Component format, @Nullable Object @NotNull ... arguments) This method is similar todebug(Component, Object...)method except that the marker data is also taken into consideration.voiddebug(@NotNull org.slf4j.Marker marker, @NotNull Component format, @Nullable Object arg1, @Nullable Object arg2) This method is similar todebug(Component, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar todebug(Component, Throwable)method except that the marker data is also taken into consideration.voidLog a message at the ERROR level.voidLog an exception (throwable) at the ERROR level with an accompanying message.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 a message with the specific final @NotNull Marker at the ERROR level.voidThis method is similar toerror(Component, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toerror(Component, Object)method except that the marker data is also taken into consideration.voiderror(@NotNull org.slf4j.Marker marker, @NotNull Component format, @Nullable Object @NotNull ... arguments) This method is similar toerror(Component, Object...)method except that the marker data is also taken into consideration.voiderror(@NotNull org.slf4j.Marker marker, @NotNull Component format, @Nullable Object arg1, @Nullable Object arg2) This method is similar toerror(Component, Object, Object)method except that the marker data is also taken into consideration.voidLog 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 a message with the specific Marker at the INFO level.voidThis method is similar toinfo(Component, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar toinfo(Component, Object)method except that the marker data is also taken into consideration.voidinfo(@NotNull org.slf4j.Marker marker, @NotNull Component format, @Nullable Object @NotNull ... arguments) This method is similar toinfo(Component, Object...)method except that the marker data is also taken into consideration.voidinfo(@NotNull org.slf4j.Marker marker, @NotNull Component format, @Nullable Object arg1, @Nullable Object arg2) This method is similar toinfo(Component, Object, Object)method except that the marker data is also taken into consideration.static @NotNull ComponentLoggerlogger()Get a logger instance with the name of the calling class.static @NotNull ComponentLoggerGet a logger instance with the binary name of the provided class.static @NotNull ComponentLoggerGet a logger instance with the provided name.voidLog 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 a message with the specific Marker at the TRACE level.voidThis method is similar totrace(Component, Object)method except that the marker data is also taken into consideration.voidtrace(@NotNull org.slf4j.Marker marker, @NotNull Component format, @Nullable Object @NotNull ... argArray) This method is similar totrace(Component, Object...)method except that the marker data is also taken into consideration.voidtrace(@NotNull org.slf4j.Marker marker, @NotNull Component format, @Nullable Object arg1, @Nullable Object arg2) This method is similar totrace(Component, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar totrace(Component, Throwable)method except that the marker data is also taken into consideration.voidLog a message at the WARN level.voidLog an exception (throwable) at the WARN level with an accompanying message.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 a message with the specific final @NotNull Marker at the WARN level.voidThis method is similar towarn(Component, Throwable)method except that the marker data is also taken into consideration.voidThis method is similar towarn(Component, Object)method except that the marker data is also taken into consideration.voidwarn(@NotNull org.slf4j.Marker marker, @NotNull Component format, @Nullable Object @NotNull ... arguments) This method is similar towarn(Component, Object...)method except that the marker data is also taken into consideration.voidwarn(@NotNull org.slf4j.Marker marker, @NotNull Component format, @Nullable Object arg1, @Nullable Object arg2) This method is similar towarn(Component, Object, Object)method except that the marker data is also taken into consideration.Methods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isEnabledForLevel, isErrorEnabled, isErrorEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, makeLoggingEventBuilder, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
-
Method Details
-
logger
Get a logger instance with the name of the calling class.This method is caller-sensitive and should not be wrapped.
This logger is produced by implementations of the
ComponentLoggerProvider.- Returns:
- a logger with the name of the calling class
- Since:
- 4.11.0
-
logger
Get a logger instance with the provided name.This logger is produced by implementations of the
ComponentLoggerProvider.- Parameters:
name- the name of the logger- Returns:
- a logger with the provided name
- Since:
- 4.11.0
-
logger
Get a logger instance with the binary name of the provided class.This logger is produced by implementations of the
ComponentLoggerProvider.- Parameters:
clazz- the class to use when naming the logger- Returns:
- a logger with the name of the calling class
- Since:
- 4.11.0
-
trace
Log a message at the TRACE level.- Parameters:
msg- the message string to be logged- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
trace
void trace(@NotNull @NotNull Component format, @Nullable @Nullable Object arg1, @Nullable @Nullable Object arg2) 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 stringarg1- the first argumentarg2- the second argument- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
trace
Log a message with the specific Marker at the TRACE level.- Parameters:
marker- the marker data specific to this log statementmsg- the message string to be logged- Since:
- 4.11.0
-
trace
void trace(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object arg) This method is similar totrace(Component, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg- the argument- Since:
- 4.11.0
-
trace
void trace(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object arg1, @Nullable @Nullable Object arg2) This method is similar totrace(Component, Object, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg1- the first argumentarg2- the second argument- Since:
- 4.11.0
-
trace
void trace(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object @NotNull ... argArray) This method is similar totrace(Component, Object...)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringargArray- an array of arguments- Since:
- 4.11.0
-
trace
void trace(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component msg, @Nullable @Nullable Throwable t) This method is similar totrace(Component, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementmsg- the message accompanying the exceptiont- the exception (throwable) to log- Since:
- 4.11.0
-
debug
Log a message at the DEBUG level.- Parameters:
msg- the message string to be logged- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
debug
void debug(@NotNull @NotNull Component format, @Nullable @Nullable Object arg1, @Nullable @Nullable Object arg2) 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 stringarg1- the first argumentarg2- the second argument- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
debug
Log a message with the specific Marker at the DEBUG level.- Parameters:
marker- the marker data specific to this log statementmsg- the message string to be logged- Since:
- 4.11.0
-
debug
void debug(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object arg) This method is similar todebug(Component, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg- the argument- Since:
- 4.11.0
-
debug
void debug(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object arg1, @Nullable @Nullable Object arg2) This method is similar todebug(Component, Object, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg1- the first argumentarg2- the second argument- Since:
- 4.11.0
-
debug
void debug(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object @NotNull ... arguments) This method is similar todebug(Component, Object...)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarguments- a list of 3 or more arguments- Since:
- 4.11.0
-
debug
void debug(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component msg, @Nullable @Nullable Throwable t) This method is similar todebug(Component, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementmsg- the message accompanying the exceptiont- the exception (throwable) to log- Since:
- 4.11.0
-
info
Log a message at the INFO level.- Parameters:
msg- the message string to be logged- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
info
void info(@NotNull @NotNull Component format, @Nullable @Nullable Object arg1, @Nullable @Nullable Object arg2) 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 stringarg1- the first argumentarg2- the second argument- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
info
Log a message with the specific Marker at the INFO level.- Parameters:
marker- The marker specific to this log statementmsg- the message string to be logged- Since:
- 4.11.0
-
info
void info(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object arg) This method is similar toinfo(Component, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg- the argument- Since:
- 4.11.0
-
info
void info(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object arg1, @Nullable @Nullable Object arg2) This method is similar toinfo(Component, Object, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg1- the first argumentarg2- the second argument- Since:
- 4.11.0
-
info
void info(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object @NotNull ... arguments) This method is similar toinfo(Component, Object...)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarguments- a list of 3 or more arguments- Since:
- 4.11.0
-
info
void info(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component msg, @NotNull @NotNull Throwable t) This method is similar toinfo(Component, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data for this log statementmsg- the message accompanying the exceptiont- the exception (throwable) to log- Since:
- 4.11.0
-
warn
Log a message at the WARN level.- Parameters:
msg- the message string to be logged- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
warn
void warn(@NotNull @NotNull Component format, @Nullable @Nullable Object arg1, @Nullable @Nullable Object arg2) 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 stringarg1- the first argumentarg2- the second argument- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
warn
Log a message with the specific final @NotNull Marker at the WARN level.- Parameters:
marker- The marker specific to this log statementmsg- the message string to be logged- Since:
- 4.11.0
-
warn
void warn(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object arg) This method is similar towarn(Component, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg- the argument- Since:
- 4.11.0
-
warn
void warn(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object arg1, @Nullable @Nullable Object arg2) This method is similar towarn(Component, Object, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg1- the first argumentarg2- the second argument- Since:
- 4.11.0
-
warn
void warn(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object @NotNull ... arguments) This method is similar towarn(Component, Object...)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarguments- a list of 3 or more arguments- Since:
- 4.11.0
-
warn
void warn(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component msg, @NotNull @NotNull Throwable t) This method is similar towarn(Component, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data for this log statementmsg- the message accompanying the exceptiont- the exception (throwable) to log- Since:
- 4.11.0
-
error
Log a message at the ERROR level.- Parameters:
msg- the message string to be logged- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
error
void error(@NotNull @NotNull Component format, @Nullable @Nullable Object arg1, @Nullable @Nullable Object arg2) 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 stringarg1- the first argumentarg2- the second argument- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
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- Since:
- 4.11.0
-
error
Log a message with the specific final @NotNull Marker at the ERROR level.- Parameters:
marker- The marker specific to this log statementmsg- the message string to be logged- Since:
- 4.11.0
-
error
void error(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object arg) This method is similar toerror(Component, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg- the argument- Since:
- 4.11.0
-
error
void error(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object arg1, @Nullable @Nullable Object arg2) This method is similar toerror(Component, Object, Object)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg1- the first argumentarg2- the second argument- Since:
- 4.11.0
-
error
void error(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component format, @Nullable @Nullable Object @NotNull ... arguments) This method is similar toerror(Component, Object...)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementformat- the format stringarguments- a list of 3 or more arguments- Since:
- 4.11.0
-
error
void error(@NotNull @NotNull org.slf4j.Marker marker, @NotNull @NotNull Component msg, @NotNull @NotNull Throwable t) This method is similar toerror(Component, Throwable)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementmsg- the message accompanying the exceptiont- the exception (throwable) to log- Since:
- 4.11.0
-