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 TypeMethodDescriptiondefault ComponentLoggingEventBuilderatDebug()Entry point for fluent-logging forLevel.DEBUGlevel.default ComponentLoggingEventBuilderatError()Entry point for fluent-logging forLevel.ERRORlevel.default ComponentLoggingEventBuilderatInfo()Entry point for fluent-logging forLevel.INFOlevel.atLevel(org.slf4j.event.Level level) Create the appropriate builder for the supplied level.default ComponentLoggingEventBuilderatTrace()Entry point for fluent-logging forLevel.TRACElevel.default ComponentLoggingEventBuilderatWarn()Entry point for fluent-logging forLevel.WARNlevel.voidLog 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.voidThis method is similar todebug(Component, Object...)method except that the marker data is also taken into consideration.voidThis 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 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 a message with the specific final Marker at the ERROR level.voidThis method is similar toerror(Component, Object)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.voidThis method is similar toerror(Component, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toerror(Component, Throwable)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, Object)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.voidThis method is similar toinfo(Component, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toinfo(Component, Throwable)method except that the marker data is also taken into consideration.static ComponentLoggerlogger()Get a logger instance with the name of the calling class.static ComponentLoggerGet a logger instance with the binary name of the provided class.static ComponentLoggerGet a logger instance with the provided name.makeLoggingEventBuilder(org.slf4j.event.Level level) Unconditionally create a new logging event builder.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.voidThis method is similar totrace(Component, Object...)method except that the marker data is also taken into consideration.voidThis 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 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 a message with the specific final Marker at the WARN level.voidThis method is similar towarn(Component, Object)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.voidThis method is similar towarn(Component, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar towarn(Component, Throwable)method except that the marker data is also taken into consideration.Methods inherited from interface org.slf4j.Logger
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, 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
-
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 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
-
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
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
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
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
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
-
atTrace
Entry point for fluent-logging forLevel.TRACElevel.Warning: This method is only available when running with SLF4J 2.0+
- Specified by:
atTracein interfaceorg.slf4j.Logger- Returns:
- LoggingEventBuilder instance as appropriate for level TRACE
- Since:
- 4.12.0
-
debug
Log a message at the DEBUG level.- Parameters:
msg- the message string to be logged- Since:
- 4.11.0
-
debug
-
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 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
-
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
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
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
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
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
-
atDebug
Entry point for fluent-logging forLevel.DEBUGlevel.Warning: This method is only available when running with SLF4J 2.0+
- Specified by:
atDebugin interfaceorg.slf4j.Logger- Returns:
- LoggingEventBuilder instance as appropriate for level DEBUG
- Since:
- 4.12.0
-
info
Log a message at the INFO level.- Parameters:
msg- the message string to be logged- Since:
- 4.11.0
-
info
-
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 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
-
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
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
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
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
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
-
atInfo
Entry point for fluent-logging forLevel.INFOlevel.Warning: This method is only available when running with SLF4J 2.0+
- Specified by:
atInfoin interfaceorg.slf4j.Logger- Returns:
- LoggingEventBuilder instance as appropriate for level INFO
- Since:
- 4.12.0
-
warn
Log a message at the WARN level.- Parameters:
msg- the message string to be logged- Since:
- 4.11.0
-
warn
-
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
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
-
warn
Log a message with the specific final 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
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
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
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
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
-
atWarn
Entry point for fluent-logging forLevel.WARNlevel.Warning: This method is only available when running with SLF4J 2.0+
- Specified by:
atWarnin interfaceorg.slf4j.Logger- Returns:
- LoggingEventBuilder instance as appropriate for level WARN
- Since:
- 4.12.0
-
error
Log a message at the ERROR level.- Parameters:
msg- the message string to be logged- Since:
- 4.11.0
-
error
-
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 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
-
error
Log a message with the specific final 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
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
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
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
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
-
atError
Entry point for fluent-logging forLevel.ERRORlevel.Warning: This method is only available when running with SLF4J 2.0+
- Specified by:
atErrorin interfaceorg.slf4j.Logger- Returns:
- LoggingEventBuilder instance as appropriate for level ERROR
- Since:
- 5.0.0
-
makeLoggingEventBuilder
Unconditionally create a new logging event builder.Warning: This method is only available when running with SLF4J 2.0+
- Specified by:
makeLoggingEventBuilderin interfaceorg.slf4j.Logger- Parameters:
level- desired level for the event builder- Returns:
- a new event builder
- Since:
- 5.0.0
-
atLevel
Create the appropriate builder for the supplied level.This may be a no-op if the passed level is disabled.
Warning: This method is only available when running with SLF4J 2.0+
- Specified by:
atLevelin interfaceorg.slf4j.Logger- Parameters:
level- desired level for the event builder- Returns:
- a new event builder
- Since:
- 5.0.0
-