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 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 aPrintStream
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Logs a message on the debug level.void
Logs a message on the debug level.void
Logs a message on the error level.void
Logs a message on the error level.void
Logs a message on the info level.void
Logs a message on the info level.boolean
Returnstrue
if the debug log level is enabled.boolean
Returnstrue
if the error log level is enabled.boolean
Returnstrue
if the info log level is enabled.boolean
Returnstrue
if the warn log level is enabled.void
Logs a message on the warn level.void
Logs a message on the warn level.
-
Method Details
-
isDebugEnabled
boolean isDebugEnabled()Returnstrue
if the debug log level is enabled.- Returns:
true
if 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()Returnstrue
if the info log level is enabled.- Returns:
true
if 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()Returnstrue
if the warn log level is enabled.- Returns:
true
if 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()Returnstrue
if the error log level is enabled.- Returns:
true
if 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.
-