blob: 04bff86bd27300ad9d803992f2f1a0472f0035ac [file] [log] [blame]
Rishi Chailb220d742020-09-16 15:23:53 +01001<configuration scan="true" debug="false">
2 <include resource="org/springframework/boot/logging/logback/base.xml" />
3
4 <property name="queueSize" value="256" />
5 <property name="maxFileSize" value="20MB" />
6 <property name="maxHistory" value="30" />
7 <property name="totalSizeCap" value="20MB" />
8
9 <!-- log file names -->
10 <property name="logName" value="cps" />
11
12 <property name="currentTimeStamp" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;,UTC}"/>
13
14 <property name="debugPattern"
15 value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%thread|%X{RequestID}| %logger{50} - %msg%n" />
16
niamhcore4a0676c2020-12-17 12:53:50 +000017 <property name="all-log-pattern"
18 value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%thread|%X{RequestID}| %logger{50} - %msg%n" />
19
20 <appender name="CONSOLE"
21 class="ch.qos.logback.core.ConsoleAppender">
22 <layout class="ch.qos.logback.classic.PatternLayout">
23 <Pattern>${all-log-pattern}</Pattern>
24 </layout>
Rishi Chailb220d742020-09-16 15:23:53 +010025 </appender>
26
Rishi Chailb220d742020-09-16 15:23:53 +010027 <root level="INFO">
niamhcore4a0676c2020-12-17 12:53:50 +000028 <appender-ref ref="CONSOLE" />
Rishi Chailb220d742020-09-16 15:23:53 +010029 </root>
30
niamhcore4a0676c2020-12-17 12:53:50 +000031<!-- Send logs to File & Rotate File -->
32<!-- <appender name="Debug"-->
33<!-- class="ch.qos.logback.core.rolling.RollingFileAppender">-->
34<!-- <file>../log/${logName}.log</file>-->
35<!-- <rollingPolicy-->
36<!-- class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">-->
37<!-- <fileNamePattern>${logName}.%d{yyyy-MM-dd}.%i.log.zip-->
38<!-- </fileNamePattern>-->
39<!-- <maxFileSize>${maxFileSize}</maxFileSize>-->
40<!-- <maxHistory>${maxHistory}</maxHistory>-->
41<!-- <totalSizeCap>${totalSizeCap}</totalSizeCap>-->
42<!-- </rollingPolicy>-->
43<!-- <encoder>-->
44<!-- <pattern>${debugPattern}</pattern>-->
45<!-- </encoder>-->
46<!-- </appender>-->
47
48<!-- <appender name="asyncDebug" class="ch.qos.logback.classic.AsyncAppender">-->
49<!-- <queueSize>256</queueSize>-->
50<!-- <appender-ref ref="Debug" />-->
51<!-- <includeCallerData>true</includeCallerData>-->
52<!-- </appender>-->
53
54<!-- <logger name="org.onap.cps" level="DEBUG" additivity="false">-->
55<!-- <appender-ref ref="asyncDebug" />-->
56<!-- </logger>-->
57
58<!-- <root level="INFO">-->
59<!-- <appender-ref ref="asyncDebug" />-->
60<!-- </root>-->
61
Rishi Chailb220d742020-09-16 15:23:53 +010062</configuration>