Skip to content

Commit f7cb98e

Browse files
committed
refactor: 日志位置和格式修改
1 parent 42fd320 commit f7cb98e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

simple-application/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ mybatis-plus:
3131
# log config
3232
logging:
3333
file:
34-
path: c:/logs
34+
path: /log/sra
3535

3636
# simple-rest-admin 配置
3737
sra:

simple-application/src/main/resources/logback-spring.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<!--输出格式-->
2424
<property name="consolePattern"
25-
value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%-15thread] %highlight(%-5level) %cyan(%-50logger{50}) : %msg%n" />
25+
value="%red(%d{yyyy-MM-dd HH:mm:ss.SSS}) %green([%-15thread]) %highlight(%-5level) %cyan(%-50logger{50}) : %msg%n" />
2626
<!--不带色彩的格式用以输出到文件-->
2727
<property name="filePattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%-15thread] %-5level %-50logger{50} : %msg%n" />
2828

0 commit comments

Comments
 (0)