public class RequestLogCollector extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CURRENT_API_LOG_CONTEXT_NAME |
static String |
CURRENT_TRACE_LOG_CONTEXT_NAME |
| 构造器和说明 |
|---|
RequestLogCollector() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
destroy() |
static ApiRequestLog |
onRequestStart(javax.servlet.http.HttpServletRequest request,
ApiInfo apiInfo) |
static ApiRequestLog |
onRequestStart(org.springframework.http.server.reactive.ServerHttpRequest request,
ApiInfo apiInfo) |
static void |
onResponseEnd(ApiRequestLog requestLog,
Throwable throwable,
int httpStatus,
Map<String,String> headers) |
static void |
onResponseEnd(javax.servlet.http.HttpServletResponse response,
Throwable throwable) |
static void |
onSystemBackendTaskEnd(Throwable throwable) |
static void |
onSystemBackendTaskStart(String actionGroup,
String actionKey,
String actionName) |
static void |
setApiLogResponseBody(Object body) |
public static ApiRequestLog onRequestStart(javax.servlet.http.HttpServletRequest request, ApiInfo apiInfo)
public static ApiRequestLog onRequestStart(org.springframework.http.server.reactive.ServerHttpRequest request, ApiInfo apiInfo)
public static void setApiLogResponseBody(Object body)
public static void onResponseEnd(ApiRequestLog requestLog, Throwable throwable, int httpStatus, Map<String,String> headers)
public static void onResponseEnd(javax.servlet.http.HttpServletResponse response,
Throwable throwable)
public static void onSystemBackendTaskStart(String actionGroup, String actionKey, String actionName)
public static void onSystemBackendTaskEnd(Throwable throwable)
public static void destroy()
Copyright © 2025. All rights reserved.