opt:日志优化

This commit is contained in:
zhangzq
2023-12-27 14:22:03 +08:00
parent 8db97aa7f3
commit 68b87a2953
4 changed files with 9 additions and 17 deletions

View File

@@ -84,4 +84,4 @@ mybatis-plus:
feishu: https://open.feishu.cn/open-apis/bot/v2/hook/cfe495f7-9bcd-40bb-ab66-038de2131cac
lucene:
index:
path: /Users/mima0000/Desktop/index
path: E:\lms\lucene\index

View File

@@ -5,10 +5,9 @@
<property name="log.charset" value="utf-8"/>
<property name="log.pattern"
value="%black(%contextName-) %red(%d{yyyy-MM-dd HH:mm:ss.SSS}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}) - %gray(%msg%n)"/>
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
<springProperty scope="context" name="esIndex" source="es.index"/>
<property name="LOG_HOME" value="${logPath}"/>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<!-- 控制台高亮-->
<withJansi>true</withJansi>