package org.nl.config.lucene;

/**
 * @Author: lyd
 * @Description: 定义lucene相关常量
 * @Date: 2023/8/25
 */
public class LogMessageConstant {
    /** */
    public final static String SORT_NAME = "time";
    /** 级别 */
    public final static String FIELD_LEVEL = "level";
    /** 时间 */
    public final static String FIELD_TIMESTAMP = "timestamp";
    /** 类的限定名 */
    public final static String FIELD_CLASS_NAME = "logger";
    /** 线程名 */
    public final static String FIELD_THREAD = "thread";
    /** 日志内容 */
    public final static String FIELD_MESSAGE = "message";
    public final static String FIELD_TRACEID = "tlogTraceId";
    // 定义颜色值
    /** 文本颜色：黑色 */
    public final static String COLOR_BLACK = "\u001B[30m";
    /** 文本颜色：红色 */
    public final static String COLOR_RED = "\u001B[31m";
    /** 文本颜色：绿色 */
    public final static String COLOR_GREEN = "\u001B[32m";
    /** 文本颜色：黄色 */
    public final static String COLOR_YELLOW = "\u001B[33m";
    /** 文本颜色：蓝色 */
    public final static String COLOR_BLUE = "\u001B[34m";
    /** 文本颜色：品红色 */
    public final static String COLOR_MAGENTA = "\u001B[35m";
    /** 文本颜色：青色 */
    public final static String COLOR_CYAN = "\u001B[36m";
    /** 文本颜色：白色 */
    public final static String COLOR_WHITE = "\u001B[37m";
    /** 文本颜色重置 */
    public final static String COLOR_RESET = "\u001B[0m";
    /** 背景颜色：黄色 */
    public final static String BACKGROUND_YELLOW = "\u001B[43m";
    /** 索引路径 */
    public final static String INDEX_DIR = "E:\\lucene\\index";

}
