Package net.bytebuddy.build.maven
Class ByteBuddyMojo.MavenBuildLogger
java.lang.Object
net.bytebuddy.build.maven.ByteBuddyMojo.MavenBuildLogger
- All Implemented Interfaces:
BuildLogger
- Enclosing class:
ByteBuddyMojo
A
BuildLogger
implementation for a Maven Log
.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.build.BuildLogger
BuildLogger.Adapter, BuildLogger.Compound, BuildLogger.NoOp, BuildLogger.StreamWriting
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.maven.plugin.logging.Log
The logger to delegate to. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MavenBuildLogger
(org.apache.maven.plugin.logging.Log log) Creates a new Maven build logger. -
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.
-
Field Details
-
log
private final org.apache.maven.plugin.logging.Log logThe logger to delegate to.
-
-
Constructor Details
-
MavenBuildLogger
protected MavenBuildLogger(org.apache.maven.plugin.logging.Log log) Creates a new Maven build logger.- Parameters:
log
- The logger to delegate to.
-
-
Method Details
-
isDebugEnabled
public boolean isDebugEnabled()Returnstrue
if the debug log level is enabled.- Specified by:
isDebugEnabled
in interfaceBuildLogger
- Returns:
true
if the debug log level is enabled.
-
debug
Logs a message on the debug level.- Specified by:
debug
in interfaceBuildLogger
- Parameters:
message
- The message to log.
-
debug
Logs a message on the debug level.- Specified by:
debug
in interfaceBuildLogger
- Parameters:
message
- The message to log.throwable
- A throwable that is attached to the message.
-
isInfoEnabled
public boolean isInfoEnabled()Returnstrue
if the info log level is enabled.- Specified by:
isInfoEnabled
in interfaceBuildLogger
- Returns:
true
if the info log level is enabled.
-
info
Logs a message on the info level.- Specified by:
info
in interfaceBuildLogger
- Parameters:
message
- The message to log.
-
info
Logs a message on the info level.- Specified by:
info
in interfaceBuildLogger
- Parameters:
message
- The message to log.throwable
- A throwable that is attached to the message.
-
isWarnEnabled
public boolean isWarnEnabled()Returnstrue
if the warn log level is enabled.- Specified by:
isWarnEnabled
in interfaceBuildLogger
- Returns:
true
if the warn log level is enabled.
-
warn
Logs a message on the warn level.- Specified by:
warn
in interfaceBuildLogger
- Parameters:
message
- The message to log.
-
warn
Logs a message on the warn level.- Specified by:
warn
in interfaceBuildLogger
- Parameters:
message
- The message to log.throwable
- A throwable that is attached to the message.
-
isErrorEnabled
public boolean isErrorEnabled()Returnstrue
if the error log level is enabled.- Specified by:
isErrorEnabled
in interfaceBuildLogger
- Returns:
true
if the error log level is enabled.
-
error
Logs a message on the error level.- Specified by:
error
in interfaceBuildLogger
- Parameters:
message
- The message to log.
-
error
Logs a message on the error level.- Specified by:
error
in interfaceBuildLogger
- Parameters:
message
- The message to log.throwable
- A throwable that is attached to the message.
-