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; } }