public enum GatewayLogger extends java.lang.Enum<GatewayLogger>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.String msg)
记录网关异常日志
|
void |
info(java.lang.String msg)
记录网关普通日志
|
void |
record(java.lang.String msg,
java.lang.Throwable t)
记录异常
|
void |
recordAndThrow(java.lang.String msg,
java.lang.Throwable t)
记录异常之后,再次抛出
|
static GatewayLogger |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GatewayLogger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GatewayLogger INSTANCE
public static GatewayLogger[] values()
for (GatewayLogger c : GatewayLogger.values()) System.out.println(c);
public static GatewayLogger valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void record(java.lang.String msg,
java.lang.Throwable t)
msg - 自定义异常信息t - 异常对象public void recordAndThrow(java.lang.String msg,
java.lang.Throwable t)
msg - 自定义异常信息t - 异常对象public void info(java.lang.String msg)
msg - public void error(java.lang.String msg)
msg -