| 构造器和说明 |
|---|
ExceptionFormatUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
buildExceptionMessages(Throwable throwable) |
static String |
buildExceptionMessages(Throwable throwable,
boolean filterMode) |
static String |
buildExceptionMessages(Throwable throwable,
int showLines) |
static String |
buildLogHeader(String actionKey,
Serializable bizKey)
生成日志消息
|
static String |
buildLogTail() |
static void |
setFilterKeys(List<String> filterKeys) |
static void |
setFilterMode(boolean filterMode) |
static void |
setShowLines(int showLines) |
static Exception |
wrapExtraExceptionMessages(String sourceName,
Exception e) |
public static void setFilterMode(boolean filterMode)
public static void setShowLines(int showLines)
public static String buildLogHeader(String actionKey, Serializable bizKey)
actionKey - 操作关键词bizKey - 业务关键信息如:订单号public static String buildLogTail()
public static String buildExceptionMessages(Throwable throwable, int showLines)
public static String buildExceptionMessages(Throwable throwable, boolean filterMode)
Copyright © 2025. All rights reserved.