Add Message tracing logger service.
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / commons / message-lib / src / test / resources / logback-test.xml
1 <!--
2   ~  Copyright © 2019 IBM.
3   ~  Modifications Copyright © 2018-2019 AT&T Intellectual Property.
4   ~
5   ~  Licensed under the Apache License, Version 2.0 (the "License");
6   ~  you may not use this file except in compliance with the License.
7   ~  You may obtain a copy of the License at
8   ~
9   ~      http://www.apache.org/licenses/LICENSE-2.0
10   ~
11   ~  Unless required by applicable law or agreed to in writing, software
12   ~  distributed under the License is distributed on an "AS IS" BASIS,
13   ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   ~  See the License for the specific language governing permissions and
15   ~  limitations under the License.
16   -->
17
18 <configuration>
19
20     <property name="localPattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"/>
21     <property name="defaultPattern"
22               value="%date{ISO8601,UTC}|%X{RequestID}|%X{InvocationID}|%thread|%X{ServiceName}|%X{ClientIPAddress}|%logger{50}| %msg%n"/>
23     <property name="testing"
24               value="%X{RequestID}|%X{InvocationID}|%logger{50}| %msg%n"/>
25
26     <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
27         <!-- encoders are assigned the type
28              ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
29         <encoder>
30             <pattern>${testing}</pattern>
31         </encoder>
32     </appender>
33
34     <logger name="org.springframework.test" level="warn"/>
35     <logger name="org.springframework" level="warn"/>
36     <logger name="org.hibernate" level="info"/>
37     <logger name="org.onap.ccsdk.cds.blueprintsprocessor" level="info"/>
38
39     <root level="warn">
40         <appender-ref ref="STDOUT"/>
41     </root>
42
43 </configuration>