package com.haha.common.constant;

public class LogConstants {

    private LogConstants() {
    }

    public static final String LOG_PATTERN = "%d{yyyy-MM-dd HH:mm:ss.SSS} [%X{traceId}] [%thread] %-5level %logger{36} - %msg%n";
    
    public static final String TRACE_ID_KEY = "traceId";
    
    public static final long DEFAULT_SLOW_REQUEST_THRESHOLD = 3000L;
    
    public static final String[] EXCLUDE_PATHS = {
        "/static/**",
        "/css/**",
        "/js/**",
        "/images/**",
        "/fonts/**",
        "/favicon.ico",
        "/webjars/**",
        "/actuator/**",
        "/swagger-ui/**",
        "/v3/api-docs/**"
    };
    
    public static final String[] STATIC_RESOURCE_EXTENSIONS = {
        ".css", ".js", ".jpg", ".jpeg", ".png", ".gif", ".ico", ".svg", ".woff", ".woff2", ".ttf", ".eot", ".map"
    };
    
    public static final int MAX_PARAM_LENGTH = 1000;
    
    public static final int MAX_RESPONSE_LENGTH = 500;
}
