public static enum BuildLogger.NoOp extends Enum<BuildLogger.NoOp> implements BuildLogger
BuildLogger.Adapter, BuildLogger.Compound, BuildLogger.NoOp, BuildLogger.StreamWriting| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String message)
Logs a message on the debug level.
|
void |
debug(String message,
Throwable throwable)
Logs a message on the debug level.
|
void |
error(String message)
Logs a message on the error level.
|
void |
error(String message,
Throwable throwable)
Logs a message on the error level.
|
void |
info(String message)
Logs a message on the info level.
|
void |
info(String message,
Throwable throwable)
Logs a message on the info level.
|
boolean |
isDebugEnabled()
Returns
true if the debug log level is enabled. |
boolean |
isErrorEnabled()
Returns
true if the error log level is enabled. |
boolean |
isInfoEnabled()
Returns
true if the info log level is enabled. |
boolean |
isWarnEnabled()
Returns
true if the warn log level is enabled. |
static BuildLogger.NoOp |
valueOf(String name)
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 |
warn(String message)
Logs a message on the warn level.
|
void |
warn(String message,
Throwable throwable)
Logs a message on the warn level.
|
public static final BuildLogger.NoOp INSTANCE
public static BuildLogger.NoOp[] values()
for (BuildLogger.NoOp c : BuildLogger.NoOp.values()) System.out.println(c);
public static BuildLogger.NoOp valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isDebugEnabled()
true if the debug log level is enabled.isDebugEnabled in interface BuildLoggertrue if the debug log level is enabled.public void debug(String message)
debug in interface BuildLoggermessage - The message to log.public void debug(String message, Throwable throwable)
debug in interface BuildLoggermessage - The message to log.throwable - A throwable that is attached to the message.public boolean isInfoEnabled()
true if the info log level is enabled.isInfoEnabled in interface BuildLoggertrue if the info log level is enabled.public void info(String message)
info in interface BuildLoggermessage - The message to log.public void info(String message, Throwable throwable)
info in interface BuildLoggermessage - The message to log.throwable - A throwable that is attached to the message.public boolean isWarnEnabled()
true if the warn log level is enabled.isWarnEnabled in interface BuildLoggertrue if the warn log level is enabled.public void warn(String message)
warn in interface BuildLoggermessage - The message to log.public void warn(String message, Throwable throwable)
warn in interface BuildLoggermessage - The message to log.throwable - A throwable that is attached to the message.public boolean isErrorEnabled()
true if the error log level is enabled.isErrorEnabled in interface BuildLoggertrue if the error log level is enabled.public void error(String message)
error in interface BuildLoggermessage - The message to log.public void error(String message, Throwable throwable)
error in interface BuildLoggermessage - The message to log.throwable - A throwable that is attached to the message.Copyright © 2014–2025. All rights reserved.