Skip to content

Commit

Permalink
Update logback-test.xml to remove unnecessary logging to \tmp\spring.log
Browse files Browse the repository at this point in the history
Remove logback-spring.xml from exomiser-data-genome, exomiser-data-phenotype
  • Loading branch information
julesjacobsen committed Feb 28, 2024
1 parent 1dfd0a4 commit 28c03dc
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 154 deletions.
4 changes: 3 additions & 1 deletion exomiser-cli/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ exomiser.phenotype.data-version=2402
#spring.cache.caffeine.spec=maximumSize=60000

### logging ###
#logging.file.name=logs/exomiser.log
# Logging is highly configurable - see https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.logging.file-output
#logging.file.name=logs/exomiser.log
logging.level.com.zaxxer.hikari=ERROR
7 changes: 6 additions & 1 deletion exomiser-cli/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
-->

<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
<logger name="com.zaxxer.hikari" level="ERROR"/>
<logger name="org.springframework" level="ERROR"/>
<logger name="org.thymeleaf" level="ERROR"/>
</configuration>
8 changes: 6 additions & 2 deletions exomiser-core/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@
-->

<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<logger name="org.monarchinitiative.exomiser.core.genome.VariantFactoryImpl" level="ERROR"/>
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
<logger name="com.zaxxer.hikari" level="ERROR"/>
<logger name="org.springframework" level="ERROR"/>
<logger name="org.thymeleaf" level="ERROR"/>
</configuration>
31 changes: 0 additions & 31 deletions exomiser-data-genome/src/main/resources/logback-spring.xml

This file was deleted.

7 changes: 6 additions & 1 deletion exomiser-data-genome/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
-->

<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
<logger name="com.zaxxer.hikari" level="ERROR"/>
<logger name="org.springframework" level="ERROR"/>
<logger name="org.thymeleaf" level="ERROR"/>
</configuration>
31 changes: 0 additions & 31 deletions exomiser-data-phenotype/src/main/resources/logback-spring.xml

This file was deleted.

9 changes: 7 additions & 2 deletions exomiser-data-phenotype/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
-->

<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
<logger name="com.zaxxer.hikari" level="ERROR"/>
<logger name="org.springframework" level="ERROR"/>
<logger name="org.thymeleaf" level="ERROR"/>
</configuration>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
-->

<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
<logger name="com.zaxxer.hikari" level="ERROR"/>
<logger name="org.springframework" level="ERROR"/>
<logger name="org.thymeleaf" level="ERROR"/>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
-->

<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
<logger name="org.springframework" level="ERROR"/>
<logger name="org.thymeleaf" level="ERROR"/>
<logger name="org.flywaydb" level="ERROR"/>
Expand Down
26 changes: 0 additions & 26 deletions exomiser-spring-boot-test/src/test/resources/logback-test.xml

This file was deleted.

31 changes: 0 additions & 31 deletions exomiser-web/src/main/resources/logback-spring.xml

This file was deleted.

26 changes: 0 additions & 26 deletions exomiser-web/src/test/resources/logback-test.xml

This file was deleted.

0 comments on commit 28c03dc

Please sign in to comment.