Interface FormattedLogger
-
- All Superinterfaces:
org.slf4j.Logger
public interface FormattedLogger extends org.slf4j.Logger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voiddebug(net.kyori.adventure.text.Component msg)Log a message at the DEBUG level.default voiddebug(net.kyori.adventure.text.Component msg, Throwable t)Log an exception (throwable) at the DEBUG level with an accompanying message.default voiddebug(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)Log a message with the specific Marker at the DEBUG level.default voiddebug(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, Throwable t)This method is similar todebug(Component, Throwable)method except that the marker data is also taken into consideration.default voiderror(net.kyori.adventure.text.Component msg)Log a message at the ERROR level.default voiderror(net.kyori.adventure.text.Component msg, Throwable t)Log an exception (throwable) at the ERROR level with an accompanying message.default voiderror(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)Log a message with the specific Marker at the ERROR level.default voiderror(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, Throwable t)This method is similar toerror(Component, Throwable)method except that the marker data is also taken into consideration.default StringformatText(net.kyori.adventure.text.Component component)StringformatText(net.kyori.adventure.text.Component component, @Nullable org.slf4j.Marker marker)default voidinfo(net.kyori.adventure.text.Component msg)Log a message at the INFO level.default voidinfo(net.kyori.adventure.text.Component msg, Throwable t)Log an exception (throwable) at the INFO level with an accompanying message.default voidinfo(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)Log a message with the specific Marker at the INFO level.default voidinfo(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, Throwable t)This method is similar toinfo(Component, Throwable)method except that the marker data is also taken into consideration.LocalelogLocale()Get the language that will be used for logging translatable messages.LocalelogLocale(@Nullable org.slf4j.Marker marker)Get the language that will be used to log a specificMarker.@Nullable Stringprefix()voidprefix(@Nullable String prefix)net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,?,String>serializer()default voidtrace(net.kyori.adventure.text.Component msg)Log a message at the TRACE level.default voidtrace(net.kyori.adventure.text.Component msg, Throwable t)Log an exception (throwable) at the TRACE level with an accompanying message.default voidtrace(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)Log a message with the specific Marker at the TRACE level.default voidtrace(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, Throwable t)This method is similar totrace(Component, Throwable)method except that the marker data is also taken into consideration.default voidwarn(net.kyori.adventure.text.Component msg)Log a message at the WARN level.default voidwarn(net.kyori.adventure.text.Component msg, Throwable t)Log an exception (throwable) at the WARN level with an accompanying message.default voidwarn(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)Log a message with the specific Marker at the WARN level.default voidwarn(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, Throwable t)This 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, 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 Detail
-
logLocale
Locale logLocale()
Get the language that will be used for logging translatable messages.- Returns:
- the locale
- Since:
- 2.0.0
-
logLocale
Locale logLocale(@Nullable org.slf4j.Marker marker)
Get the language that will be used to log a specificMarker.- Parameters:
marker- the marker to log- Returns:
- the marker
- Since:
- 2.0.0
-
serializer
net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,?,String> serializer()
-
formatText
default String formatText(net.kyori.adventure.text.Component component)
-
formatText
String formatText(net.kyori.adventure.text.Component component, @Nullable org.slf4j.Marker marker)
-
trace
default void trace(net.kyori.adventure.text.Component msg)
Log a message at the TRACE level.- Parameters:
msg- the translatable message to be logged- Since:
- 2.0.0
-
trace
default void trace(net.kyori.adventure.text.Component msg, Throwable t)
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:
- 2.0.0
-
trace
default void trace(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)
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:
- 2.0.0
-
trace
default void trace(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, 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:
- 2.0.0
-
debug
default void debug(net.kyori.adventure.text.Component msg)
Log a message at the DEBUG level.- Parameters:
msg- the message string to be logged- Since:
- 2.0.0
-
debug
default void debug(net.kyori.adventure.text.Component msg, Throwable t)
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:
- 2.0.0
-
debug
default void debug(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)
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:
- 2.0.0
-
debug
default void debug(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, 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:
- 2.0.0
-
info
default void info(net.kyori.adventure.text.Component msg)
Log a message at the INFO level.- Parameters:
msg- the message string to be logged- Since:
- 2.0.0
-
info
default void info(net.kyori.adventure.text.Component msg, Throwable t)
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:
- 2.0.0
-
info
default void info(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)
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:
- 2.0.0
-
info
default void info(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, 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:
- 2.0.0
-
warn
default void warn(net.kyori.adventure.text.Component msg)
Log a message at the WARN level.- Parameters:
msg- the message string to be logged- Since:
- 2.0.0
-
warn
default void warn(net.kyori.adventure.text.Component msg, Throwable t)
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:
- 2.0.0
-
warn
default void warn(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)
Log a message with the specific Marker at the WARN level.- Parameters:
marker- The marker specific to this log statementmsg- the message string to be logged- Since:
- 2.0.0
-
warn
default void warn(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, 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:
- 2.0.0
-
error
default void error(net.kyori.adventure.text.Component msg)
Log a message at the ERROR level.- Parameters:
msg- the message string to be logged- Since:
- 2.0.0
-
error
default void error(net.kyori.adventure.text.Component msg, Throwable t)
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:
- 2.0.0
-
error
default void error(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)
Log a message with the specific Marker at the ERROR level.- Parameters:
marker- The marker specific to this log statementmsg- the message string to be logged- Since:
- 2.0.0
-
error
default void error(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, 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:
- 2.0.0
-
-