|
发表于 2021-10-31 10:08:37
|
显示全部楼层
本帖最后由 teymon 于 2021-10-31 10:16 编辑
看了一下源码,发现一个小小的bug:
审计日志格式:
默认时间戳之类的信息|日志版本号|请求ID|请求深度|请求链|登录账号|员工工号
|系统归属|系统名称|模块名称|表单类型|操作名称|是否统计上报|扩展信息|时间戳|耗时|请求结果|主机IP
|主机名|终端类型|终端IP |终端型号|终端IMEI|错误堆栈
String auditLog = String.format("%tF %tT|2.0||1||%s|%s|%s|%s|%s||%s|true|%s|%d|%d|true|%s|%s|%s|%s|%s||", end, end, this.userId,this.userId, systemName, system, this.uri, op, this.getParameter(op, system, extend1), end.getTime(), elapsed, hostAddress, hostName, getTerminal(), this.remoteAddress, this.userAgent);
源码中:this.userId ,写了两次,第一个应该改为this.userName,否则打印出来两个字段都是userId,this.userName 就是用户名。
注意:这里的userId 对应的是人员信息中的:“唯一编码”,不是“人员工号”。
|
|