java.lang.Object
de.hybris.platform.dataimportcommons.log.Log
All Implemented Interfaces:
SafeLogger, org.slf4j.Logger

public final class Log extends Object implements SafeLogger
A logger that acts as a proxy to a real logger retrieved by calling LoggerFactory.getLogger(Class), which enforces logging rules and limitations in a standard way that is applicable to all data import projects.
  • Method Details

    • getLogger

      public static Log getLogger(Class<?> cl)
      Creates a logger for the specified class.
      Parameters:
      cl - a class used as a unique name of the logger.
      Returns:
      a new logger instance to be used by a class instance.
      See Also:
      • LoggerFactory.getLogger(Class)
      • Logger.getName()
    • 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
    • traceSafely

      public void traceSafely(String s, Object... objects)
      Description copied from interface: SafeLogger
      Logs trace message by encoding any special character in the argument
      Specified by:
      traceSafely in interface SafeLogger
      Parameters:
      s - log message
      objects - vulnerable log arugments
    • trace

      public void trace(String s, Throwable throwable)
      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 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
    • 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
    • debugSafely

      public void debugSafely(String s, Object... objects)
      Description copied from interface: SafeLogger
      Logs debug message by encoding any special character in the argument
      Specified by:
      debugSafely in interface SafeLogger
      Parameters:
      s - log message
      objects - vulnerable log arugments
    • debug

      public void debug(String s, Throwable throwable)
      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 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
    • 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
    • infoSafely

      public void infoSafely(String s, Object... objects)
      Description copied from interface: SafeLogger
      Logs info message by encoding any special character in the argument
      Specified by:
      infoSafely in interface SafeLogger
      Parameters:
      s - log message
      objects - vulnerable log arugments
    • info

      public void info(String s, Throwable throwable)
      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 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
    • 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
    • warnSafely

      public void warnSafely(String s, Object... objects)
      Description copied from interface: SafeLogger
      Logs warn message by encoding any special character in the argument
      Specified by:
      warnSafely in interface SafeLogger
      Parameters:
      s - log message
      objects - vulnerable log arugments
    • 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
    • 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
    • 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
    • errorSafely

      public void errorSafely(String s, Object... objects)
      Description copied from interface: SafeLogger
      Logs error message by encoding any special character in the argument
      Specified by:
      errorSafely in interface SafeLogger
      Parameters:
      s - log message
      objects - vulnerable log arugments
    • error

      public void error(String s, Throwable throwable)
      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 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