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