Class HelixLogger

java.lang.Object
com.helixframework.logging.logback.HelixLogger
All Implemented Interfaces:
org.slf4j.Logger

public class HelixLogger extends Object implements org.slf4j.Logger
HelixLogger is a decorator class that implements the Logger interface. It delegates the logging operations to the underlying logger instance provided during initialization. This allows for additional functionality to be added to the logger operations.
  • Constructor Details

    • HelixLogger

      public HelixLogger(org.slf4j.Logger logger)
  • Method Details

    • 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 s)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(String s, Object o)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(String s, Object o, Object o1)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(String s, Object... objects)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(String s, Throwable throwable)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(Throwable throwable)
      Log an exception (throwable) at the TRACE level. If the throwable is annotated with HelixException the message and code will be taken from there; otherwise from the throwable message.
      Parameters:
      throwable - the exception (throwable) to log
    • 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 s)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

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

      public void trace(org.slf4j.Marker marker, String s, Object o, Object o1)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

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

      public void trace(org.slf4j.Marker marker, String s, Throwable throwable)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(org.slf4j.Marker marker, Throwable throwable)
      Log an exception (throwable) at the TRACE level. If the throwable is annotated with HelixException the message and code will be taken from there; otherwise from the throwable message.
      Parameters:
      marker - The marker data to take into consideration
      throwable - the exception (throwable) to log
    • isDebugEnabled

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

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

      public void debug(String s, Object o)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(String s, Object o, Object o1)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(String s, Object... objects)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(String s, Throwable throwable)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(Throwable throwable)
      Log an exception (throwable) at the DEBUG level. If the throwable is annotated with HelixException the message and code will be taken from there; otherwise from the throwable message.
      Parameters:
      throwable - the exception (throwable) to log
    • 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 s)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

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

      public void debug(org.slf4j.Marker marker, String s, Object o, Object o1)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

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

      public void debug(org.slf4j.Marker marker, String s, Throwable throwable)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(org.slf4j.Marker marker, Throwable throwable)
      Log an exception (throwable) at the DEBUG level. If the throwable is annotated with HelixException the message and code will be taken from there; otherwise from the throwable message.
      Parameters:
      marker - The marker data to take into consideration
      throwable - the exception (throwable) to log
    • isInfoEnabled

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

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

      public void info(String s, Object o)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(String s, Object o, Object o1)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(String s, Object... objects)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(String s, Throwable throwable)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(Throwable throwable)
      Log an exception (throwable) at the INFO level. If the throwable is annotated with HelixException the message and code will be taken from there; otherwise from the throwable message.
      Parameters:
      throwable - the exception (throwable) to log
    • 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 s)
      Specified by:
      info in interface org.slf4j.Logger
    • info

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

      public void info(org.slf4j.Marker marker, String s, Object o, Object o1)
      Specified by:
      info in interface org.slf4j.Logger
    • info

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

      public void info(org.slf4j.Marker marker, String s, Throwable throwable)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(org.slf4j.Marker marker, Throwable throwable)
      Log an exception (throwable) at the INFO level. If the throwable is annotated with HelixException the message and code will be taken from there; otherwise from the throwable message.
      Parameters:
      marker - The marker data to take into consideration
      throwable - the exception (throwable) to log
    • isWarnEnabled

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

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

      public void warn(String s, Object o)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(String s, Object... objects)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(String s, Object o, Object o1)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(String s, Throwable throwable)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(Throwable throwable)
      Log an exception (throwable) at the WARN level. If the throwable is annotated with HelixException the message and code will be taken from there; otherwise from the throwable message.
      Parameters:
      throwable - the exception (throwable) to log
    • 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 s)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

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

      public void warn(org.slf4j.Marker marker, String s, Object o, Object o1)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

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

      public void warn(org.slf4j.Marker marker, String s, Throwable throwable)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(org.slf4j.Marker marker, Throwable throwable)
      Log an exception (throwable) at the WARN level. If the throwable is annotated with HelixException the message and code will be taken from there; otherwise from the throwable message.
      Parameters:
      marker - The marker data to take into consideration
      throwable - the exception (throwable) to log
    • isErrorEnabled

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

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

      public void error(String s, Object o)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(String s, Object o, Object o1)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(String s, Object... objects)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(String s, Throwable throwable)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(Throwable throwable)
      Log an exception (throwable) at the ERROR level. If the throwable is annotated with HelixException the message and code will be taken from there; otherwise from the throwable message.
      Parameters:
      throwable - the exception (throwable) to log
    • 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 s)
      Specified by:
      error in interface org.slf4j.Logger
    • error

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

      public void error(org.slf4j.Marker marker, String s, Object o, Object o1)
      Specified by:
      error in interface org.slf4j.Logger
    • error

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

      public void error(org.slf4j.Marker marker, String s, Throwable throwable)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(org.slf4j.Marker marker, Throwable throwable)
      Log an exception (throwable) at the ERROR level. If the throwable is annotated with HelixException the message and code will be taken from there; otherwise from the throwable message.
      Parameters:
      marker - The marker data to take into consideration
      throwable - the exception (throwable) to log