Skip to content

Commit c208df6

Browse files
authored
Clean up logback (#1070)
* Clean up logback logback only in CLI module and don't filter STDOUT appender * Add test config, remove old notes
1 parent c239f2f commit c208df6

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
<configuration>
2+
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
23
<!-- CLI logback config -->
3-
<!-- TODO: this isn't being picked up in JAR creation. It should be overwriting the core config, but is not -->
44
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
5-
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
6-
<level>INFO</level>
7-
</filter>
85
<encoder>
96
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} [%file:%line] %msg%n</pattern>
107
</encoder>
@@ -14,6 +11,4 @@
1411
<appender-ref ref="STDOUT" />
1512
</root>
1613

17-
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
18-
1914
</configuration>

org.hl7.fhir.publisher.core/src/main/resources/logback.xml renamed to org.hl7.fhir.publisher.core/src/test/resources/logback-test.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<configuration>
2-
<!-- Core logback config -->
32
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4-
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
5-
<level>INFO</level>
6-
</filter>
73
<encoder>
84
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} [%file:%line] %msg%n</pattern>
95
</encoder>
@@ -13,6 +9,4 @@
139
<appender-ref ref="STDOUT" />
1410
</root>
1511

16-
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
17-
1812
</configuration>

0 commit comments

Comments
 (0)