Interface FormattedLogger

  • All Superinterfaces:
    org.slf4j.Logger

    public interface FormattedLogger
    extends org.slf4j.Logger
    • Field Summary

      • Fields inherited from interface org.slf4j.Logger

        ROOT_LOGGER_NAME
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void debug​(net.kyori.adventure.text.Component msg)
      Log a message at the DEBUG level.
      default void debug​(net.kyori.adventure.text.Component msg, Throwable t)
      Log an exception (throwable) at the DEBUG level with an accompanying message.
      default void debug​(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)
      Log a message with the specific Marker at the DEBUG level.
      default void debug​(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, Throwable t)
      This method is similar to debug(Component, Throwable) method except that the marker data is also taken into consideration.
      default void error​(net.kyori.adventure.text.Component msg)
      Log a message at the ERROR level.
      default void error​(net.kyori.adventure.text.Component msg, Throwable t)
      Log an exception (throwable) at the ERROR level with an accompanying message.
      default void error​(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)
      Log a message with the specific Marker at the ERROR level.
      default void error​(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, Throwable t)
      This method is similar to error(Component, Throwable) method except that the marker data is also taken into consideration.
      default String formatText​(net.kyori.adventure.text.Component component)  
      String formatText​(net.kyori.adventure.text.Component component, @Nullable org.slf4j.Marker marker)  
      default void info​(net.kyori.adventure.text.Component msg)
      Log a message at the INFO level.
      default void info​(net.kyori.adventure.text.Component msg, Throwable t)
      Log an exception (throwable) at the INFO level with an accompanying message.
      default void info​(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)
      Log a message with the specific Marker at the INFO level.
      default void info​(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, Throwable t)
      This method is similar to info(Component, Throwable) method except that the marker data is also taken into consideration.
      Locale logLocale()
      Get the language that will be used for logging translatable messages.
      Locale logLocale​(@Nullable org.slf4j.Marker marker)
      Get the language that will be used to log a specific Marker.
      @Nullable String prefix()  
      void prefix​(@Nullable String prefix)  
      net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,​?,​String> serializer()  
      default void trace​(net.kyori.adventure.text.Component msg)
      Log a message at the TRACE level.
      default void trace​(net.kyori.adventure.text.Component msg, Throwable t)
      Log an exception (throwable) at the TRACE level with an accompanying message.
      default void trace​(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)
      Log a message with the specific Marker at the TRACE level.
      default void trace​(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, Throwable t)
      This method is similar to trace(Component, Throwable) method except that the marker data is also taken into consideration.
      default void warn​(net.kyori.adventure.text.Component msg)
      Log a message at the WARN level.
      default void warn​(net.kyori.adventure.text.Component msg, Throwable t)
      Log an exception (throwable) at the WARN level with an accompanying message.
      default void warn​(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg)
      Log a message with the specific Marker at the WARN level.
      default void warn​(org.slf4j.Marker marker, net.kyori.adventure.text.Component msg, Throwable t)
      This method is similar to warn(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 specific Marker.
        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,​?,​Stringserializer()
      • 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 exception
        t - 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 statement
        msg - 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 to trace(Component, Throwable) method except that the marker data is also taken into consideration.
        Parameters:
        marker - the marker data specific to this log statement
        msg - the message accompanying the exception
        t - 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 exception
        t - 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 statement
        msg - 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 to debug(Component, Throwable) method except that the marker data is also taken into consideration.
        Parameters:
        marker - the marker data specific to this log statement
        msg - the message accompanying the exception
        t - 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 exception
        t - 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 statement
        msg - 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 to info(Component, Throwable) method except that the marker data is also taken into consideration.
        Parameters:
        marker - the marker data for this log statement
        msg - the message accompanying the exception
        t - 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 exception
        t - 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 statement
        msg - 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 to warn(Component, Throwable) method except that the marker data is also taken into consideration.
        Parameters:
        marker - the marker data for this log statement
        msg - the message accompanying the exception
        t - 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 exception
        t - 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 statement
        msg - 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 to error(Component, Throwable) method except that the marker data is also taken into consideration.
        Parameters:
        marker - the marker data specific to this log statement
        msg - the message accompanying the exception
        t - the exception (throwable) to log
        Since:
        2.0.0