Class AbstractInternalLogger

java.lang.Object
io.micrometer.core.util.internal.logging.AbstractInternalLogger
All Implemented Interfaces:
InternalLogger, Serializable

@Deprecated public abstract class AbstractInternalLogger extends Object implements InternalLogger, Serializable
Deprecated.
Please use AbstractInternalLogger instead.
NOTE: This file has been copied and slightly modified from {io.netty.util.internal.logging}. A skeletal implementation of InternalLogger. This class implements all methods that have a InternalLogLevel parameter by default to call specific logger methods such as InternalLogger.info(String) or InternalLogger.isInfoEnabled().
See Also:
  • Constructor Details

    • AbstractInternalLogger

      protected AbstractInternalLogger(String name)
      Deprecated.
      Creates a new instance.
      Parameters:
      name - logger name
  • Method Details

    • name

      public String name()
      Deprecated.
      Description copied from interface: InternalLogger
      Return the name of this InternalLogger instance.
      Specified by:
      name in interface InternalLogger
      Returns:
      name of this logger instance
    • isEnabled

      public boolean isEnabled(InternalLogLevel level)
      Deprecated.
      Description copied from interface: InternalLogger
      Is the logger instance enabled for the specified level?
      Specified by:
      isEnabled in interface InternalLogger
      Parameters:
      level - log level
      Returns:
      True if this Logger is enabled for the specified level, false otherwise.
    • trace

      public void trace(Throwable t)
      Deprecated.
      Description copied from interface: InternalLogger
      Log an exception (throwable) at the TRACE level.
      Specified by:
      trace in interface InternalLogger
      Parameters:
      t - the exception (throwable) to log
    • debug

      public void debug(Throwable t)
      Deprecated.
      Description copied from interface: InternalLogger
      Log an exception (throwable) at the DEBUG level.
      Specified by:
      debug in interface InternalLogger
      Parameters:
      t - the exception (throwable) to log
    • info

      public void info(Throwable t)
      Deprecated.
      Description copied from interface: InternalLogger
      Log an exception (throwable) at the INFO level.
      Specified by:
      info in interface InternalLogger
      Parameters:
      t - the exception (throwable) to log
    • warn

      public void warn(Throwable t)
      Deprecated.
      Description copied from interface: InternalLogger
      Log an exception (throwable) at the WARN level.
      Specified by:
      warn in interface InternalLogger
      Parameters:
      t - the exception (throwable) to log
    • error

      public void error(Throwable t)
      Deprecated.
      Description copied from interface: InternalLogger
      Log an exception (throwable) at the ERROR level.
      Specified by:
      error in interface InternalLogger
      Parameters:
      t - the exception (throwable) to log
    • log

      public void log(InternalLogLevel level, String msg, Throwable cause)
      Deprecated.
      Description copied from interface: InternalLogger
      Log an exception (throwable) at the specified level with an accompanying message.
      Specified by:
      log in interface InternalLogger
      Parameters:
      level - log level
      msg - the message accompanying the exception
      cause - the exception (throwable) to log
    • log

      public void log(InternalLogLevel level, Throwable cause)
      Deprecated.
      Description copied from interface: InternalLogger
      Log an exception (throwable) at the specified level.
      Specified by:
      log in interface InternalLogger
      Parameters:
      level - log level
      cause - the exception (throwable) to log
    • log

      public void log(InternalLogLevel level, String msg)
      Deprecated.
      Description copied from interface: InternalLogger
      Log a message at the specified level.
      Specified by:
      log in interface InternalLogger
      Parameters:
      level - log level
      msg - the message string to be logged
    • log

      public void log(InternalLogLevel level, String format, Object arg)
      Deprecated.
      Description copied from interface: InternalLogger
      Log a message at the specified level according to the specified format and argument.

      This form avoids superfluous object creation when the logger is disabled for the specified level.

      Specified by:
      log in interface InternalLogger
      Parameters:
      level - log level
      format - the format string
      arg - the argument
    • log

      public void log(InternalLogLevel level, String format, Object argA, Object argB)
      Deprecated.
      Description copied from interface: InternalLogger
      Log a message at the specified level according to the specified format and arguments.

      This form avoids superfluous object creation when the logger is disabled for the specified level.

      Specified by:
      log in interface InternalLogger
      Parameters:
      level - log level
      format - the format string
      argA - the first argument
      argB - the second argument
    • log

      public void log(InternalLogLevel level, String format, Object... arguments)
      Deprecated.
      Description copied from interface: InternalLogger
      Log a message at the specified level according to the specified format and arguments.

      This form avoids superfluous string concatenation when the logger is disabled for the specified 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 the specified level. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

      Specified by:
      log in interface InternalLogger
      Parameters:
      level - log level
      format - the format string
      arguments - a list of 3 or more arguments
    • readResolve

      protected Object readResolve() throws ObjectStreamException
      Deprecated.
      Throws:
      ObjectStreamException
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object