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 Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface BuildLogger
BuildLogger.Adapter, BuildLogger.Compound, BuildLogger.NoOp, BuildLogger.StreamWriting -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
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.static BuildLogger.NoOpReturns 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.voidLogs a message on the warn level.voidLogs 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()Returnstrueif the debug log level is enabled.- Specified by:
isDebugEnabledin interfaceBuildLogger- Returns:
trueif the debug log level is enabled.
-
debug
Logs a message on the debug level.- Specified by:
debugin interfaceBuildLogger- Parameters:
message- The message to log.
-
debug
Logs a message on the debug level.- Specified by:
debugin interfaceBuildLogger- Parameters:
message- The message to log.throwable- A throwable that is attached to the message.
-
isInfoEnabled
public boolean isInfoEnabled()Returnstrueif the info log level is enabled.- Specified by:
isInfoEnabledin interfaceBuildLogger- Returns:
trueif the info log level is enabled.
-
info
Logs a message on the info level.- Specified by:
infoin interfaceBuildLogger- Parameters:
message- The message to log.
-
info
Logs a message on the info level.- Specified by:
infoin interfaceBuildLogger- Parameters:
message- The message to log.throwable- A throwable that is attached to the message.
-
isWarnEnabled
public boolean isWarnEnabled()Returnstrueif the warn log level is enabled.- Specified by:
isWarnEnabledin interfaceBuildLogger- Returns:
trueif the warn log level is enabled.
-
warn
Logs a message on the warn level.- Specified by:
warnin interfaceBuildLogger- Parameters:
message- The message to log.
-
warn
Logs a message on the warn level.- Specified by:
warnin interfaceBuildLogger- Parameters:
message- The message to log.throwable- A throwable that is attached to the message.
-
isErrorEnabled
public boolean isErrorEnabled()Returnstrueif the error log level is enabled.- Specified by:
isErrorEnabledin interfaceBuildLogger- Returns:
trueif the error log level is enabled.
-
error
Logs a message on the error level.- Specified by:
errorin interfaceBuildLogger- Parameters:
message- The message to log.
-
error
Logs a message on the error level.- Specified by:
errorin interfaceBuildLogger- Parameters:
message- The message to log.throwable- A throwable that is attached to the message.
-