java.lang.Object
com.github.blutorange.maven.plugin.closurecompiler.common.LogWrapper
All Implemented Interfaces:
org.apache.maven.plugin.logging.Log

public final class LogWrapper extends Object implements org.apache.maven.plugin.logging.Log
A wrapper for a logger that allows overwriting the log level.
Author:
madgaksha
  • Constructor Details

    • LogWrapper

      public LogWrapper(org.apache.maven.plugin.logging.Log log, LogLevel level)
      Parameters:
      log - Logger to wrap.
      level - Level to override the default log level of the wrapped logger. If null, do not overwrite the log level.
  • Method Details

    • debug

      public void debug(CharSequence content)
      Specified by:
      debug in interface org.apache.maven.plugin.logging.Log
    • debug

      public void debug(CharSequence content, Throwable error)
      Specified by:
      debug in interface org.apache.maven.plugin.logging.Log
    • debug

      public void debug(Throwable error)
      Specified by:
      debug in interface org.apache.maven.plugin.logging.Log
    • error

      public void error(CharSequence content)
      Specified by:
      error in interface org.apache.maven.plugin.logging.Log
    • error

      public void error(CharSequence content, Throwable error)
      Specified by:
      error in interface org.apache.maven.plugin.logging.Log
    • error

      public void error(Throwable error)
      Specified by:
      error in interface org.apache.maven.plugin.logging.Log
    • info

      public void info(CharSequence content)
      Specified by:
      info in interface org.apache.maven.plugin.logging.Log
    • info

      public void info(CharSequence content, Throwable error)
      Specified by:
      info in interface org.apache.maven.plugin.logging.Log
    • info

      public void info(Throwable error)
      Specified by:
      info in interface org.apache.maven.plugin.logging.Log
    • isDebugEnabled

      public boolean isDebugEnabled()
      Specified by:
      isDebugEnabled in interface org.apache.maven.plugin.logging.Log
    • isErrorEnabled

      public boolean isErrorEnabled()
      Specified by:
      isErrorEnabled in interface org.apache.maven.plugin.logging.Log
    • isInfoEnabled

      public boolean isInfoEnabled()
      Specified by:
      isInfoEnabled in interface org.apache.maven.plugin.logging.Log
    • isWarnEnabled

      public boolean isWarnEnabled()
      Specified by:
      isWarnEnabled in interface org.apache.maven.plugin.logging.Log
    • warn

      public void warn(CharSequence content)
      Specified by:
      warn in interface org.apache.maven.plugin.logging.Log
    • warn

      public void warn(CharSequence content, Throwable error)
      Specified by:
      warn in interface org.apache.maven.plugin.logging.Log
    • warn

      public void warn(Throwable error)
      Specified by:
      warn in interface org.apache.maven.plugin.logging.Log