logging/AccessLog.java

yudao-cloud · yudao-gateway/src/main/java/cn/iocoder/yudao/gateway/filter/logging/AccessLog.java · java · MIT
database, tag:knn-classified

Data class for capturing gateway access log details including trace, timing, and payloads.

// Source: https://github.com/YunaiV/yudao-cloud | License: MIT | Copyright 2021 yudao-cloud
// Provided via justclaw.it.com; keep this notice with the code.
package cn.iocoder.yudao.gateway.filter.logging;

import lombok.Data;
import org.springframework.cloud.gateway.route.Route;
import org.springframework.http.HttpStatus;
import org.springframework.util.MultiValueMap;

import java.time.LocalDateTime;

/**
 * 网关的访问日志
 */
@Data
public class AccessLog {

    /**
     * 链路追踪编号
     */
    private String traceId;
    /**
     * 用户编号
     */
    private Long userId;
    /**
     * 用户类型
     */
    private Integer userType;
    /**
     * 路由
     *
     * 类似 ApiAccessLogCreateReqDTO 的 applicationName
     */
    private Route route;

    /**
     * 协议
     */
    private String schema;
    /**


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key