diff --git a/src/main/java/cn/iocoder/dashboard/framework/tracer/core/aop/BizTraceAspect.java b/src/main/java/cn/iocoder/dashboard/framework/tracer/core/aop/BizTraceAspect.java index 5f1d945b08..bff0fe300f 100644 --- a/src/main/java/cn/iocoder/dashboard/framework/tracer/core/aop/BizTraceAspect.java +++ b/src/main/java/cn/iocoder/dashboard/framework/tracer/core/aop/BizTraceAspect.java @@ -58,7 +58,7 @@ public class BizTraceAspect { span.setTag(BizTrace.TYPE_TAG, StrUtil.toString(SpElUtil.analysisSpEl(trace.type(), joinPoint))); span.setTag(BizTrace.ID_TAG, StrUtil.toString(SpElUtil.analysisSpEl(trace.id(), joinPoint))); } catch (Exception ex) { - log.error("[around][解析 bizType 与 bizId 发生异常]", ex); + log.error("[setBizTag][解析 bizType 与 bizId 发生异常]", ex); } } diff --git a/src/main/resources/application-local.yaml b/src/main/resources/application-local.yaml index f99655ebef..fd25bfc641 100644 --- a/src/main/resources/application-local.yaml +++ b/src/main/resources/application-local.yaml @@ -146,6 +146,7 @@ spring: logging: file: path: ${user.home}/logs/ # 日志文件的路径 + name: ${spring.application.name} # 日志文件名 --- #################### 芋道相关配置 #################### diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index 16f7d5261c..49eb3c2490 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -1,70 +1,62 @@ -   -   + + + + + +       - %d{ISO8601} | %tid | %thread | %-5level | %msg%n + ${PATTERN_DEFAULT} + - - ./logs/ruoyi-vue-pro-%d{yyyy-MM-dd_HH}.log - 3 - - %d{ISO8601} | %tid | %thread | %-5level | %msg%n + ${PATTERN_DEFAULT} - - 10MB - + + ${LOG_FILE}.%d{yyyy-MM-dd}.%i.log} + 10MB + 7 + false + - 0 10 - + - %d{yyyy-MM-dd HH:mm:ss.SSS} [%X{tid}] [%thread] %-5level %logger{36} -%msg%n + ${PATTERN_DEFAULT} - s + - - + + + + + - - - + + + + - - - - - - - -        -     -   - - - - -