Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Commit d044ff2

Browse files
committed
logback: 日志级别读取环境变量
1 parent 889e457 commit d044ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/logback.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<pattern>[%d{HH:mm:ss} %cyan(%c{5}) %yellow(%thread) %highlight(%level)]: %msg%n</pattern>
66
</encoder>
77
</appender>
8-
<root level="DEBUG">
8+
<root level="${LogLevel:-INFO}">
99
<appender-ref ref="Console"/>
1010
</root>
1111
</configuration>

0 commit comments

Comments
 (0)