Skip to content

Commit

Permalink
Support update the default log level when startup (#3577)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrproliu authored Oct 25, 2023
1 parent f4d1a36 commit 4028c15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zipkin-server/server-starter/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
-->

<Configuration status="DEBUG">
<Properties>
<Property name="defaultRootLogLevel">INFO</Property>
</Properties>
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %highlight{%5p} ${PID:-} --- [%15.15t] %c{1.} : %m%n" />
Expand All @@ -32,7 +35,7 @@
<logger name="com.linecorp.armeria" level="WARN" />
<logger name="com.linecorp.armeria.server.Server" level="INFO"/>
<logger name="org.apache.kafka" level="OFF"/>
<Root level="INFO">
<Root level="${sys:log.level:-${defaultRootLogLevel}}">
<AppenderRef ref="Console"/>
</Root>
</Loggers>
Expand Down

0 comments on commit 4028c15

Please sign in to comment.