LogName.java
814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.sincere.att.logs;
/**
* @author chen
* @version 1.0
* @date 2019/10/12 0012 16:18
*/
public enum LogName {
orderSuccess("orderSuccess"),
orderFail("orderFail"),
kaoInfo("kaoInfo"),
heartBeat("heartBeat"),
error("error");
private String logFileName;
LogName(String fileName) {
this.logFileName = fileName;
}
public String getLogFileName() {
return logFileName;
}
public void setLogFileName(String logFileName) {
this.logFileName = logFileName;
}
public static LogName getAwardTypeEnum(String value) {
LogName[] arr = values();
for (LogName item : arr) {
if (null != item && !item.logFileName.equals("")) {
return item;
}
}
return null;
}
}