loki
This commit is contained in:
@@ -50,7 +50,7 @@ public class LokiLogAspect {
|
|||||||
// 获取描述信息
|
// 获取描述信息
|
||||||
LokiLogType logType = lokiLog.type();
|
LokiLogType logType = lokiLog.type();
|
||||||
|
|
||||||
MDC.put("log_file_type", logType.name());
|
MDC.put("log_file_type", logType.getDesc());
|
||||||
log.info("输入参数:" + JSONObject.toJSONString(pjp.getArgs()));
|
log.info("输入参数:" + JSONObject.toJSONString(pjp.getArgs()));
|
||||||
|
|
||||||
Object proceed = pjp.proceed();
|
Object proceed = pjp.proceed();
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ public enum LokiLogType {
|
|||||||
private String desc;
|
private String desc;
|
||||||
|
|
||||||
LokiLogType(String desc) {
|
LokiLogType(String desc) {
|
||||||
|
this.desc=desc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDesc() {
|
||||||
|
return desc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user