mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 19:00:48 +00:00
Log to temp file when running tests
This commit is contained in:
parent
64b49904e4
commit
7ed93bc2cc
1 changed files with 17 additions and 0 deletions
17
services/git-bridge/src/test/resources/logback-test.xml
Normal file
17
services/git-bridge/src/test/resources/logback-test.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<configuration>
|
||||
<!-- Log everything (subject to logger and root levels set below) to stdout. -->
|
||||
<appender name="tempfile" class="ch.qos.logback.core.FileAppender">
|
||||
<file>${java.io.tmpdir}/git-bridge-test.log</file>
|
||||
<encoder>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{0}: %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- Set log levels for the application (or parts of the application). -->
|
||||
<logger name="uk.ac.ic.wlgitbridge" level="INFO" />
|
||||
|
||||
<!-- The root log level determines how much our dependencies put in the logs. -->
|
||||
<root level="WARN">
|
||||
<appender-ref ref="tempfile" />
|
||||
</root>
|
||||
</configuration>
|
Loading…
Reference in a new issue