Merge pull request #13498 from overleaf/msm-git-logback-configurable

[git-bridge] Configurable `LOG_LEVEL`

GitOrigin-RevId: 5dc34a3c980d9fd83898b4f96a30f60a8f9201ad
This commit is contained in:
Miguel Serrano 2023-06-27 11:13:39 +02:00 committed by Copybot
parent ded4de3349
commit afeeb9be68

View file

@ -1,9 +1,12 @@
<configuration> <configuration>
<variable name="LOG_LEVEL" value="${LOG_LEVEL:-INFO}" />
<!-- Log everything (subject to logger and root levels set below) to stdout. --> <!-- Log everything (subject to logger and root levels set below) to stdout. -->
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender"> <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
<target>System.out</target> <target>System.out</target>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level> <level>${LOG_LEVEL}</level>
</filter> </filter>
<encoder> <encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{0}: %msg%n</pattern> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{0}: %msg%n</pattern>
@ -22,7 +25,7 @@
</appender> </appender>
<!-- Set log levels for the application (or parts of the application). --> <!-- Set log levels for the application (or parts of the application). -->
<logger name="uk.ac.ic.wlgitbridge" level="INFO" /> <logger name="uk.ac.ic.wlgitbridge" level="${LOG_LEVEL}" />
<!-- The root log level determines how much our dependencies put in the logs. --> <!-- The root log level determines how much our dependencies put in the logs. -->
<root level="WARN"> <root level="WARN">