Class MojoLogWrapper

  • All Implemented Interfaces:
    org.apache.maven.doxia.logging.Log

    public class MojoLogWrapper
    extends java.lang.Object
    implements org.apache.maven.doxia.logging.Log
    Wrap a Mojo logger into a Doxia logger.
    Since:
    1.1
    Version:
    $Id: MojoLogWrapper.java 799000 2009-07-29 18:27:26Z ltheussl $
    Author:
    Vincent Siveton
    See Also:
    Log
    • Field Summary

      • Fields inherited from interface org.apache.maven.doxia.logging.Log

        LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
    • Constructor Summary

      Constructors 
      Constructor Description
      MojoLogWrapper​(org.apache.maven.plugin.logging.Log log)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.CharSequence content)
      void debug​(java.lang.CharSequence content, java.lang.Throwable error)
      void debug​(java.lang.Throwable error)
      void error​(java.lang.CharSequence content)
      void error​(java.lang.CharSequence content, java.lang.Throwable error)
      void error​(java.lang.Throwable error)
      void info​(java.lang.CharSequence content)
      void info​(java.lang.CharSequence content, java.lang.Throwable error)
      void info​(java.lang.Throwable error)
      boolean isDebugEnabled()
      boolean isErrorEnabled()
      boolean isInfoEnabled()
      boolean isWarnEnabled()
      void setLogLevel​(int level)
      void warn​(java.lang.CharSequence content)
      void warn​(java.lang.CharSequence content, java.lang.Throwable error)
      void warn​(java.lang.Throwable error)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MojoLogWrapper

        public MojoLogWrapper​(org.apache.maven.plugin.logging.Log log)
        Parameters:
        log - a Mojo log
    • Method Detail

      • setLogLevel

        public void setLogLevel​(int level)
        Specified by:
        setLogLevel in interface org.apache.maven.doxia.logging.Log
      • debug

        public void debug​(java.lang.CharSequence content)
        Specified by:
        debug in interface org.apache.maven.doxia.logging.Log
      • debug

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

        public void debug​(java.lang.Throwable error)
        Specified by:
        debug in interface org.apache.maven.doxia.logging.Log
      • info

        public void info​(java.lang.CharSequence content)
        Specified by:
        info in interface org.apache.maven.doxia.logging.Log
      • info

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

        public void info​(java.lang.Throwable error)
        Specified by:
        info in interface org.apache.maven.doxia.logging.Log
      • warn

        public void warn​(java.lang.CharSequence content)
        Specified by:
        warn in interface org.apache.maven.doxia.logging.Log
      • warn

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

        public void warn​(java.lang.Throwable error)
        Specified by:
        warn in interface org.apache.maven.doxia.logging.Log
      • error

        public void error​(java.lang.CharSequence content)
        Specified by:
        error in interface org.apache.maven.doxia.logging.Log
      • error

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

        public void error​(java.lang.Throwable error)
        Specified by:
        error in interface org.apache.maven.doxia.logging.Log
      • isDebugEnabled

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

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

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

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