Interface BuildLogger

All Known Implementing Classes:
BuildLogger.Adapter, BuildLogger.Compound, BuildLogger.NoOp, BuildLogger.StreamWriting, ByteBuddyMojo.MavenBuildLogger

public interface BuildLogger
An API that can be implemented by logging build systems to allow plugins to log information without depending on a build system-specific logging API.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    An abstract adapter implementation for a build logger.
    static class 
    A compound build logger.
    static enum 
    A non-operational build logger that discards all statements.
    static class 
    A build logger that writes all statements to a PrintStream.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    debug(String message)
    Logs a message on the debug level.
    void
    debug(String message, Throwable throwable)
    Logs a message on the debug level.
    void
    error(String message)
    Logs a message on the error level.
    void
    error(String message, Throwable throwable)
    Logs a message on the error level.
    void
    info(String message)
    Logs a message on the info level.
    void
    info(String message, Throwable throwable)
    Logs a message on the info level.
    boolean
    Returns true if the debug log level is enabled.
    boolean
    Returns true if the error log level is enabled.
    boolean
    Returns true if the info log level is enabled.
    boolean
    Returns true if the warn log level is enabled.
    void
    warn(String message)
    Logs a message on the warn level.
    void
    warn(String message, Throwable throwable)
    Logs a message on the warn level.
  • Method Details

    • isDebugEnabled

      boolean isDebugEnabled()
      Returns true if the debug log level is enabled.
      Returns:
      true if the debug log level is enabled.
    • debug

      void debug(String message)
      Logs a message on the debug level.
      Parameters:
      message - The message to log.
    • debug

      void debug(String message, Throwable throwable)
      Logs a message on the debug level.
      Parameters:
      message - The message to log.
      throwable - A throwable that is attached to the message.
    • isInfoEnabled

      boolean isInfoEnabled()
      Returns true if the info log level is enabled.
      Returns:
      true if the info log level is enabled.
    • info

      void info(String message)
      Logs a message on the info level.
      Parameters:
      message - The message to log.
    • info

      void info(String message, Throwable throwable)
      Logs a message on the info level.
      Parameters:
      message - The message to log.
      throwable - A throwable that is attached to the message.
    • isWarnEnabled

      boolean isWarnEnabled()
      Returns true if the warn log level is enabled.
      Returns:
      true if the warn log level is enabled.
    • warn

      void warn(String message)
      Logs a message on the warn level.
      Parameters:
      message - The message to log.
    • warn

      void warn(String message, Throwable throwable)
      Logs a message on the warn level.
      Parameters:
      message - The message to log.
      throwable - A throwable that is attached to the message.
    • isErrorEnabled

      boolean isErrorEnabled()
      Returns true if the error log level is enabled.
      Returns:
      true if the error log level is enabled.
    • error

      void error(String message)
      Logs a message on the error level.
      Parameters:
      message - The message to log.
    • error

      void error(String message, Throwable throwable)
      Logs a message on the error level.
      Parameters:
      message - The message to log.
      throwable - A throwable that is attached to the message.