Skip to content

Commit

Permalink
Add logback config for eclair-node tests (#1377)
Browse files Browse the repository at this point in the history
Otherwise we use the default logback.xml file which writes to a rolling file in the user directory.
  • Loading branch information
pm47 authored Apr 15, 2020
1 parent 1483f3f commit 9cb14ee
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions eclair-node/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2019 ACINQ SAS
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<configuration scan="true" debug="false">

<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<target>System.out</target>
<encoder>
<pattern>%date{HH:mm:ss.SSS} %highlight(%-5level) %logger{0}%X{category}%X{nodeId}%X{channelId}%X{paymentHash}%.-11X{parentPaymentId}%.-11X{paymentId} - %msg%ex{12}%n</pattern>
</encoder>
</appender>

<root level="INFO">
<!--appender-ref ref="CONSOLE"/-->
</root>

</configuration>

0 comments on commit 9cb14ee

Please sign in to comment.