public enum NoopLogger extends Enum<NoopLogger> implements ILog
ILog interface, but do nothing.
Created by xin on 2016/11/10.
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String format) |
void |
debug(String format,
Object... arguments) |
void |
error(String format) |
void |
error(String format,
Throwable e) |
void |
error(Throwable e,
String format,
Object... arguments) |
void |
info(String message) |
void |
info(String format,
Object... arguments) |
boolean |
isDebugEnable() |
boolean |
isErrorEnable() |
boolean |
isInfoEnable() |
boolean |
isWarnEnable() |
static NoopLogger |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoopLogger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
warn(String format,
Object... arguments) |
void |
warn(Throwable e,
String format,
Object... arguments) |
public static final NoopLogger INSTANCE
public static NoopLogger[] values()
for (NoopLogger c : NoopLogger.values()) System.out.println(c);
public static NoopLogger 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 isDebugEnable()
isDebugEnable in interface ILogpublic boolean isInfoEnable()
isInfoEnable in interface ILogpublic boolean isWarnEnable()
isWarnEnable in interface ILogpublic boolean isErrorEnable()
isErrorEnable in interface ILogCopyright © 2019 The Apache Software Foundation. All rights reserved.