Package net.bytebuddy.build
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 ClassesModifier and TypeInterfaceDescriptionstatic classAn abstract adapter implementation for a build logger.static classA compound build logger.static enumA non-operational build logger that discards all statements.static classA build logger that writes all statements to aPrintStream. -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a message on the debug level.voidLogs a message on the debug level.voidLogs a message on the error level.voidLogs a message on the error level.voidLogs a message on the info level.voidLogs a message on the info level.booleanReturnstrueif the debug log level is enabled.booleanReturnstrueif the error log level is enabled.booleanReturnstrueif the info log level is enabled.booleanReturnstrueif the warn log level is enabled.voidLogs a message on the warn level.voidLogs a message on the warn level.
-
Method Details
-
isDebugEnabled
boolean isDebugEnabled()Returnstrueif the debug log level is enabled.- Returns:
trueif the debug log level is enabled.
-
debug
Logs a message on the debug level.- Parameters:
message- The message to log.
-
debug
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()Returnstrueif the info log level is enabled.- Returns:
trueif the info log level is enabled.
-
info
Logs a message on the info level.- Parameters:
message- The message to log.
-
info
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()Returnstrueif the warn log level is enabled.- Returns:
trueif the warn log level is enabled.
-
warn
Logs a message on the warn level.- Parameters:
message- The message to log.
-
warn
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()Returnstrueif the error log level is enabled.- Returns:
trueif the error log level is enabled.
-
error
Logs a message on the error level.- Parameters:
message- The message to log.
-
error
Logs a message on the error level.- Parameters:
message- The message to log.throwable- A throwable that is attached to the message.
-