com.jladder.logger.LogOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jladder Show documentation
Show all versions of jladder Show documentation
with java,a low code SDK,通用低代码开发包
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;
}
}