Package net.bytebuddy.build
Enum BuildLogger.NoOp
- All Implemented Interfaces:
Serializable
,Comparable<BuildLogger.NoOp>
,java.lang.constant.Constable
,BuildLogger
- Enclosing interface:
BuildLogger
A non-operational build logger that discards all statements.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.build.BuildLogger
BuildLogger.Adapter, BuildLogger.Compound, BuildLogger.NoOp, BuildLogger.StreamWriting
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
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.static BuildLogger.NoOp
Returns the enum constant of this type with the specified name.static BuildLogger.NoOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.void
Logs a message on the warn level.void
Logs a message on the warn level.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
NoOp
private NoOp()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
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.
-