public class SelfLog extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
SELF_LOG_FILE
日志文件名称
|
| 构造器和说明 |
|---|
SelfLog() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
error(String log) |
static void |
error(String log,
Throwable e) |
static void |
errorWithTraceId(String log)
打印错误日志,附加当前线程的 TraceId
|
static void |
errorWithTraceId(String log,
String traceId)
打印错误日志,附加当前线程的 TraceId
|
static void |
errorWithTraceId(String log,
Throwable e)
打印错误日志,附加当前线程的 TraceId
|
static void |
flush() |
static void |
info(String log) |
static void |
infoWithTraceId(String log) |
static void |
warn(String log) |
public static void errorWithTraceId(String log, Throwable e)
log - 错误信息e - 异常public static void error(String log)
public static void errorWithTraceId(String log, String traceId)
log - 错误消息traceId - traceIdpublic static void errorWithTraceId(String log)
log - 错误消息public static void warn(String log)
public static void info(String log)
public static void infoWithTraceId(String log)
public static void flush()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.