Class Slf4jLogger

java.lang.Object
org.apache.maven.cli.logging.Slf4jLogger
All Implemented Interfaces:
org.codehaus.plexus.logging.Logger

public class Slf4jLogger extends Object implements org.codehaus.plexus.logging.Logger
Adapt an SLF4J logger to a Plexus logger, ignoring Plexus logger API parts that are not classical and probably not really used.
Since:
3.1.0
  • Constructor Details Link icon

    • Slf4jLogger Link icon

      public Slf4jLogger(org.slf4j.Logger logger)
  • Method Details Link icon

    • debug Link icon

      public void debug(String message)
      Specified by:
      debug in interface org.codehaus.plexus.logging.Logger
    • debug Link icon

      public void debug(String message, Throwable throwable)
      Specified by:
      debug in interface org.codehaus.plexus.logging.Logger
    • isDebugEnabled Link icon

      public boolean isDebugEnabled()
      Specified by:
      isDebugEnabled in interface org.codehaus.plexus.logging.Logger
    • info Link icon

      public void info(String message)
      Specified by:
      info in interface org.codehaus.plexus.logging.Logger
    • info Link icon

      public void info(String message, Throwable throwable)
      Specified by:
      info in interface org.codehaus.plexus.logging.Logger
    • isInfoEnabled Link icon

      public boolean isInfoEnabled()
      Specified by:
      isInfoEnabled in interface org.codehaus.plexus.logging.Logger
    • warn Link icon

      public void warn(String message)
      Specified by:
      warn in interface org.codehaus.plexus.logging.Logger
    • warn Link icon

      public void warn(String message, Throwable throwable)
      Specified by:
      warn in interface org.codehaus.plexus.logging.Logger
    • isWarnEnabled Link icon

      public boolean isWarnEnabled()
      Specified by:
      isWarnEnabled in interface org.codehaus.plexus.logging.Logger
    • error Link icon

      public void error(String message)
      Specified by:
      error in interface org.codehaus.plexus.logging.Logger
    • error Link icon

      public void error(String message, Throwable throwable)
      Specified by:
      error in interface org.codehaus.plexus.logging.Logger
    • isErrorEnabled Link icon

      public boolean isErrorEnabled()
      Specified by:
      isErrorEnabled in interface org.codehaus.plexus.logging.Logger
    • fatalError Link icon

      public void fatalError(String message)
      Specified by:
      fatalError in interface org.codehaus.plexus.logging.Logger
    • fatalError Link icon

      public void fatalError(String message, Throwable throwable)
      Specified by:
      fatalError in interface org.codehaus.plexus.logging.Logger
    • isFatalErrorEnabled Link icon

      public boolean isFatalErrorEnabled()
      Specified by:
      isFatalErrorEnabled in interface org.codehaus.plexus.logging.Logger
    • getThreshold Link icon

      public int getThreshold()
      Warning: ignored (always return 0 == Logger.LEVEL_DEBUG).
      Specified by:
      getThreshold in interface org.codehaus.plexus.logging.Logger
    • setThreshold Link icon

      public void setThreshold(int threshold)
      Warning: ignored.
      Specified by:
      setThreshold in interface org.codehaus.plexus.logging.Logger
    • getChildLogger Link icon

      public org.codehaus.plexus.logging.Logger getChildLogger(String name)
      Warning: ignored (always return null).
      Specified by:
      getChildLogger in interface org.codehaus.plexus.logging.Logger
    • getName Link icon

      public String getName()
      Specified by:
      getName in interface org.codehaus.plexus.logging.Logger