java.lang.Object
org.basepom.mojo.propertyhelper.util.Log

public final class Log extends Object
Wraps a Logger into a number of convenience methods such as varargs.
  • Method Details

    • findLog

      public static Log findLog()
      Finds the logger for the current class by using the call stack.
    • findCallerLog

      public static Log findCallerLog()
      Finds the logger for the caller by using the call stack.
    • forClass

      public static Log forClass(Class<?> clazz)
      Returns a Logger for a given class.
    • forName

      public static Log forName(String name)
      Returns a Logger for a given class or category name.
    • forLogger

      public static Log forLogger(org.slf4j.Logger wrappedLogger)
      Returns a Logger for a given log4j logger.
    • isTraceEnabled

      public boolean isTraceEnabled()
    • isDebugEnabled

      public boolean isDebugEnabled()
    • isErrorEnabled

      public boolean isErrorEnabled()
    • isWarnEnabled

      public boolean isWarnEnabled()
    • isInfoEnabled

      public boolean isInfoEnabled()
    • trace

      public void trace(Throwable t, String message, Object... args)
    • trace

      public void trace(String message, Throwable t, Object... args)
    • trace

      public void trace(Throwable t, String message)
    • trace

      public void trace(String message)
    • trace

      public void trace(String message, Object... args)
    • debug

      public void debug(Throwable t, String message, Object... args)
    • debug

      public void debug(String message, Throwable t, Object... args)
    • debug

      public void debug(Throwable t, String message)
    • debug

      public void debug(String message)
    • debug

      public void debug(String message, Object... args)
    • info

      public void info(Throwable t, String message, Object... args)
    • info

      public void info(String message, Throwable t, Object... args)
    • info

      public void info(Throwable t, String message)
    • info

      public void info(String message, Object... args)
    • info

      public void info(String message)
    • infoDebug

      public void infoDebug(Throwable t, String infoMessage, Object... args)
    • infoDebug

      public void infoDebug(String infoMessage, Throwable t, Object... args)
    • infoDebug

      public void infoDebug(Throwable t, String infoMessage)
    • warn

      public void warn(Throwable t, String message, Object... args)
    • warn

      public void warn(String message, Throwable t, Object... args)
    • warn

      public void warn(Throwable t, String message)
    • warn

      public void warn(String message, Object... args)
    • warn

      public void warn(String message)
    • warnDebug

      public void warnDebug(Throwable t, String warnMessage, Object... args)
    • warnDebug

      public void warnDebug(String warnMessage, Throwable t, Object... args)
    • warnDebug

      public void warnDebug(Throwable t, String warnMessage)
    • error

      public void error(Throwable t, String message, Object... args)
    • error

      public void error(String message, Throwable t, Object... args)
    • error

      public void error(Throwable t, String message)
    • error

      public void error(String message, Object... args)
    • error

      public void error(String message)
    • errorDebug

      public void errorDebug(Throwable t, String errorMessage, Object... args)
    • errorDebug

      public void errorDebug(String errorMessage, Throwable t, Object... args)
    • errorDebug

      public void errorDebug(Throwable t, String errorMessage)