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

com.jladder.logger.LogOption Maven / Gradle / Ivy

There is a newer version: 5.0.44
Show newest version
package com.jladder.logger;
public enum LogOption{

    /// 
    /// sql日志
    /// 
    Sql(111) ,

    /// 
    /// 分析型数据
    /// 

    Analysis(112),

    /// 
    /// 异常日志
    /// 
    Exception(10),

    /// 
    /// 逻辑错误,可断言的错误
    /// 
    Error(3),

    /// 
    /// 调试日志
    /// 
    Debug(0),

    /// 
    /// 自定义
    /// 
    Custom(1),

    /// 
    /// 必要记录的
    /// 
    Need(2) ,
    /// 
    /// Http请求
    /// 
    Request(110),
    Proxy(200);

    private int index;
    private LogOption(int index) {
        this.index=index;
    }
    public int getIndex() {
        return index;
    }
    public void setIndex(int index) {
        this.index=index;
    }

    public static LogOption get(int index){
        for (LogOption c : LogOption.values()) {
            if (c.getIndex() == index) {
                return c;
            }
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy