add:升级
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package org.nl.config;
|
||||
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import com.yomahub.tlog.id.TLogIdGenerator;
|
||||
|
||||
public class TlogIdGenerator extends TLogIdGenerator {
|
||||
@Override
|
||||
public String generateTraceId() {
|
||||
return IdUtil.getSnowflake(1, 1).nextIdStr();
|
||||
}
|
||||
}
|
||||
@@ -78,3 +78,8 @@ security:
|
||||
- /api/localStorage/pictures
|
||||
# 参数
|
||||
- /api/param/getValueByCode
|
||||
tlog:
|
||||
pattern: "[$preApp][$preIp][$spanId][$traceId]"
|
||||
enable-invoke-time-print: true
|
||||
id-generator: org.nl.config.TlogIdGenerator
|
||||
|
||||
|
||||
Reference in New Issue
Block a user