Class ByteBuddyMojo.MavenBuildLogger

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.maven.plugin.logging.Log log
      The logger to delegate to.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected MavenBuildLogger​(org.apache.maven.plugin.logging.Log log)
      Creates a new Maven build logger.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.String message)
      Logs a message on the debug level.
      void debug​(java.lang.String message, java.lang.Throwable throwable)
      Logs a message on the debug level.
      void error​(java.lang.String message)
      Logs a message on the error level.
      void error​(java.lang.String message, java.lang.Throwable throwable)
      Logs a message on the error level.
      void info​(java.lang.String message)
      Logs a message on the info level.
      void info​(java.lang.String message, java.lang.Throwable throwable)
      Logs a message on the info level.
      boolean isDebugEnabled()
      Returns true if the debug log level is enabled.
      boolean isErrorEnabled()
      Returns true if the error log level is enabled.
      boolean isInfoEnabled()
      Returns true if the info log level is enabled.
      boolean isWarnEnabled()
      Returns true if the warn log level is enabled.
      void warn​(java.lang.String message)
      Logs a message on the warn level.
      void warn​(java.lang.String message, java.lang.Throwable throwable)
      Logs a message on the warn level.
      • Methods inherited from class java.lang.Object

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

      • log

        private final org.apache.maven.plugin.logging.Log log
        The logger to delegate to.
    • Constructor Detail

      • MavenBuildLogger

        protected MavenBuildLogger​(org.apache.maven.plugin.logging.Log log)
        Creates a new Maven build logger.
        Parameters:
        log - The logger to delegate to.
    • Method Detail

      • isDebugEnabled

        public boolean isDebugEnabled()
        Returns true if the debug log level is enabled.
        Specified by:
        isDebugEnabled in interface BuildLogger
        Returns:
        true if the debug log level is enabled.
      • debug

        public void debug​(java.lang.String message)
        Logs a message on the debug level.
        Specified by:
        debug in interface BuildLogger
        Parameters:
        message - The message to log.
      • debug

        public void debug​(java.lang.String message,
                          java.lang.Throwable throwable)
        Logs a message on the debug level.
        Specified by:
        debug in interface BuildLogger
        Parameters:
        message - The message to log.
        throwable - A throwable that is attached to the message.
      • isInfoEnabled

        public boolean isInfoEnabled()
        Returns true if the info log level is enabled.
        Specified by:
        isInfoEnabled in interface BuildLogger
        Returns:
        true if the info log level is enabled.
      • info

        public void info​(java.lang.String message)
        Logs a message on the info level.
        Specified by:
        info in interface BuildLogger
        Parameters:
        message - The message to log.
      • info

        public void info​(java.lang.String message,
                         java.lang.Throwable throwable)
        Logs a message on the info level.
        Specified by:
        info in interface BuildLogger
        Parameters:
        message - The message to log.
        throwable - A throwable that is attached to the message.
      • isWarnEnabled

        public boolean isWarnEnabled()
        Returns true if the warn log level is enabled.
        Specified by:
        isWarnEnabled in interface BuildLogger
        Returns:
        true if the warn log level is enabled.
      • warn

        public void warn​(java.lang.String message)
        Logs a message on the warn level.
        Specified by:
        warn in interface BuildLogger
        Parameters:
        message - The message to log.
      • warn

        public void warn​(java.lang.String message,
                         java.lang.Throwable throwable)
        Logs a message on the warn level.
        Specified by:
        warn in interface BuildLogger
        Parameters:
        message - The message to log.
        throwable - A throwable that is attached to the message.
      • isErrorEnabled

        public boolean isErrorEnabled()
        Returns true if the error log level is enabled.
        Specified by:
        isErrorEnabled in interface BuildLogger
        Returns:
        true if the error log level is enabled.
      • error

        public void error​(java.lang.String message)
        Logs a message on the error level.
        Specified by:
        error in interface BuildLogger
        Parameters:
        message - The message to log.
      • error

        public void error​(java.lang.String message,
                          java.lang.Throwable throwable)
        Logs a message on the error level.
        Specified by:
        error in interface BuildLogger
        Parameters:
        message - The message to log.
        throwable - A throwable that is attached to the message.