All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.plumelog.core.constant.LogMessageConstant Maven / Gradle / Ivy

package com.plumelog.core.constant;

import java.util.Arrays;
import java.util.List;

/**
 * className:LogMessageConstant
 * description:
 * time:2020-05-12.10:10
 *
 * @author Tank
 * @version 1.0.0
 */
public class LogMessageConstant {

    /**
     * 链路日志前缀
     */
    public final static String TRACE_PRE = "TRACE:";


    /**
     * 当前链路开始标志
     */
    public final static String TRACE_START = "<";

    /**
     * 当前链路结束标志
     */
    public final static String TRACE_END = ">";


    public final static String LOG_KEY = "plume_log_list";

    public final static String LOG_KEY_COMPRESS = "plume_log_list_compress";

    /**
     * 链路日志存入ES的索引后缀
     */
    public final static String LOG_KEY_TRACE = "plume_trace_list";

    public final static String LOG_KEY_TRACE_COMPRESS = "plume_trace_list_compress";

    public final static String ES_INDEX = "plume_log_";
    public final static String LOG_TYPE_RUN = "run";
    public final static String LOG_TYPE_TRACE = "trace";
    public final static String DELIM_STR = "{}";
    public final static String TRACE_ID = "traceId";
    /**
     * 默认扩展
     */
    public final static String DEFAULT_EXPAND = "plumelog";
    /**
     * Sleuth 扩展
     */
    public final static String SLEUTH_EXPAND = "sleuth";
    /**
     * Sleuth 扩展
     */
    public final static String MDC_EXPAND = "mdc";
    /**
     * 所有支持的扩展
     */
    public final static List EXPANDS = Arrays.asList("plumelog", "sleuth", "mdc");
    /**
     * redis 默认端口号
     */
    public final static Integer REDIS_DEFAULT_PORT = 6379;
    /**
     * 错误报警规则key
     */
    public static final String WARN_RULE_KEY = "plumelog:warnRule";
    /**
     * 配置扩展字段的APPNAME列表
     */
    public static final String EXTEND_APP_KEY = "plumelog:extend:appName";
    /**
     * 扩展字段列表
     */
    public static final String EXTEND_APP_MAP_KEY = "plumelog:extend:";
    /**
     * 错误日志监控统计key
     */
    public static final String PLUMELOG_MONITOR_KEY = "plumelog:monitor:";
    /**
     * 错误日志监控统计key对应的map里的key time
     */
    public static final String PLUMELOG_MONITOR_KEY_MAP_FILED_TIME = "time";
    /**
     * 错误日志监控统计key对应的map里的key count
     */
    public static final String PLUMELOG_MONITOR_KEY_MAP_FILED_COUNT = "count";
    /**
     * 记录报警日志的key
     */
    public static final String PLUMELOG_MONITOR_MESSAGE_KEY = "plumelog_monitor_message_key";
    public static String ES_TYPE = "plume_log";
    /**
     * 1 高性能模式,2 全信息模式
     */
    public static int RUN_MODEL = 1;
    /**
     * 默认扩展 可变参数
     */
    public static String EXPAND = "plumelog";


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy