Class WrappingFormattedLogger

  • All Implemented Interfaces:
    ca.stellardrift.permissionsex.logging.FormattedLogger, org.slf4j.Logger

    public class WrappingFormattedLogger
    extends Object
    implements ca.stellardrift.permissionsex.logging.FormattedLogger
    An implementation of FormattedLogger that delegates to an existing logger
    • Constructor Detail

      • WrappingFormattedLogger

        public WrappingFormattedLogger​(org.slf4j.Logger wrapping,
                                       boolean supportsFormatting)
    • Method Detail

      • of

        public static ca.stellardrift.permissionsex.logging.FormattedLogger of​(org.slf4j.Logger logger,
                                                                               boolean supportsFormatting)
      • logLocale

        public Locale logLocale()
        Specified by:
        logLocale in interface ca.stellardrift.permissionsex.logging.FormattedLogger
      • logLocale

        public Locale logLocale​(@Nullable org.slf4j.Marker marker)
        Specified by:
        logLocale in interface ca.stellardrift.permissionsex.logging.FormattedLogger
      • prefix

        public @Nullable String prefix()
        Specified by:
        prefix in interface ca.stellardrift.permissionsex.logging.FormattedLogger
      • prefix

        public void prefix​(@Nullable String prefix)
        Specified by:
        prefix in interface ca.stellardrift.permissionsex.logging.FormattedLogger
      • serializer

        public net.kyori.adventure.text.serializer.ComponentSerializer<net.kyori.adventure.text.Component,​?,​Stringserializer()
        Specified by:
        serializer in interface ca.stellardrift.permissionsex.logging.FormattedLogger
      • formatText

        public String formatText​(net.kyori.adventure.text.Component component,
                                 @Nullable org.slf4j.Marker marker)
        Specified by:
        formatText in interface ca.stellardrift.permissionsex.logging.FormattedLogger
      • getName

        public String getName()
        Specified by:
        getName in interface org.slf4j.Logger
      • isTraceEnabled

        public boolean isTraceEnabled()
        Specified by:
        isTraceEnabled in interface org.slf4j.Logger
      • trace

        public void trace​(String msg)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(String format,
                          Object arg)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(String format,
                          Object arg1,
                          Object arg2)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(String format,
                          Object... arguments)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(String msg,
                          Throwable t)
        Specified by:
        trace in interface org.slf4j.Logger
      • isTraceEnabled

        public boolean isTraceEnabled​(org.slf4j.Marker marker)
        Specified by:
        isTraceEnabled in interface org.slf4j.Logger
      • trace

        public void trace​(org.slf4j.Marker marker,
                          String msg)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(org.slf4j.Marker marker,
                          String format,
                          Object arg)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(org.slf4j.Marker marker,
                          String format,
                          Object arg1,
                          Object arg2)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(org.slf4j.Marker marker,
                          String format,
                          Object... argArray)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(org.slf4j.Marker marker,
                          String msg,
                          Throwable t)
        Specified by:
        trace in interface org.slf4j.Logger
      • isDebugEnabled

        public boolean isDebugEnabled()
        Specified by:
        isDebugEnabled in interface org.slf4j.Logger
      • debug

        public void debug​(String msg)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(String format,
                          Object arg)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(String format,
                          Object arg1,
                          Object arg2)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(String format,
                          Object... arguments)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(String msg,
                          Throwable t)
        Specified by:
        debug in interface org.slf4j.Logger
      • isDebugEnabled

        public boolean isDebugEnabled​(org.slf4j.Marker marker)
        Specified by:
        isDebugEnabled in interface org.slf4j.Logger
      • debug

        public void debug​(org.slf4j.Marker marker,
                          String msg)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(org.slf4j.Marker marker,
                          String format,
                          Object arg)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(org.slf4j.Marker marker,
                          String format,
                          Object arg1,
                          Object arg2)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(org.slf4j.Marker marker,
                          String format,
                          Object... arguments)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(org.slf4j.Marker marker,
                          String msg,
                          Throwable t)
        Specified by:
        debug in interface org.slf4j.Logger
      • isInfoEnabled

        public boolean isInfoEnabled()
        Specified by:
        isInfoEnabled in interface org.slf4j.Logger
      • info

        public void info​(String msg)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(String format,
                         Object arg)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(String format,
                         Object arg1,
                         Object arg2)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(String format,
                         Object... arguments)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(String msg,
                         Throwable t)
        Specified by:
        info in interface org.slf4j.Logger
      • isInfoEnabled

        public boolean isInfoEnabled​(org.slf4j.Marker marker)
        Specified by:
        isInfoEnabled in interface org.slf4j.Logger
      • info

        public void info​(org.slf4j.Marker marker,
                         String msg)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(org.slf4j.Marker marker,
                         String format,
                         Object arg)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(org.slf4j.Marker marker,
                         String format,
                         Object arg1,
                         Object arg2)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(org.slf4j.Marker marker,
                         String format,
                         Object... arguments)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(org.slf4j.Marker marker,
                         String msg,
                         Throwable t)
        Specified by:
        info in interface org.slf4j.Logger
      • isWarnEnabled

        public boolean isWarnEnabled()
        Specified by:
        isWarnEnabled in interface org.slf4j.Logger
      • warn

        public void warn​(String msg)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(String format,
                         Object arg)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(String format,
                         Object... arguments)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(String format,
                         Object arg1,
                         Object arg2)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(String msg,
                         Throwable t)
        Specified by:
        warn in interface org.slf4j.Logger
      • isWarnEnabled

        public boolean isWarnEnabled​(org.slf4j.Marker marker)
        Specified by:
        isWarnEnabled in interface org.slf4j.Logger
      • warn

        public void warn​(org.slf4j.Marker marker,
                         String msg)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(org.slf4j.Marker marker,
                         String format,
                         Object arg)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(org.slf4j.Marker marker,
                         String format,
                         Object arg1,
                         Object arg2)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(org.slf4j.Marker marker,
                         String format,
                         Object... arguments)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(org.slf4j.Marker marker,
                         String msg,
                         Throwable t)
        Specified by:
        warn in interface org.slf4j.Logger
      • isErrorEnabled

        public boolean isErrorEnabled()
        Specified by:
        isErrorEnabled in interface org.slf4j.Logger
      • error

        public void error​(String msg)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(String format,
                          Object arg)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(String format,
                          Object arg1,
                          Object arg2)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(String format,
                          Object... arguments)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(String msg,
                          Throwable t)
        Specified by:
        error in interface org.slf4j.Logger
      • isErrorEnabled

        public boolean isErrorEnabled​(org.slf4j.Marker marker)
        Specified by:
        isErrorEnabled in interface org.slf4j.Logger
      • error

        public void error​(org.slf4j.Marker marker,
                          String msg)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(org.slf4j.Marker marker,
                          String format,
                          Object arg)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(org.slf4j.Marker marker,
                          String format,
                          Object arg1,
                          Object arg2)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(org.slf4j.Marker marker,
                          String format,
                          Object... arguments)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(org.slf4j.Marker marker,
                          String msg,
                          Throwable t)
        Specified by:
        error in interface org.slf4j.Logger