blob: 2fcb7121dd91bbca7fb822bdef4022792bf2c8f3 [file] [log] [blame]
Mnushkin, Dmitry6514e3b2019-10-21 09:25:56 -04001<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="debugLogName" value="debug" />
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
17 <appender name="Debug"
18 class="ch.qos.logback.core.rolling.RollingFileAppender">
19 <file>/app/logs/${debugLogName}.log</file>
20 <rollingPolicy
21 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
22 <fileNamePattern>${debugLogName}.%d{yyyy-MM-dd}.%i.log.zip
23 </fileNamePattern>
24 <maxFileSize>${maxFileSize}</maxFileSize>
25 <maxHistory>${maxHistory}</maxHistory>
26 <totalSizeCap>${totalSizeCap}</totalSizeCap>
27 </rollingPolicy>
28 <encoder>
29 <pattern>${debugPattern}</pattern>
30 </encoder>
31 </appender>
32
33 <appender name="asyncDebug" class="ch.qos.logback.classic.AsyncAppender">
34 <queueSize>256</queueSize>
35 <appender-ref ref="Debug" />
36 <includeCallerData>true</includeCallerData>
37 </appender>
38
39 <!-- Sim Logs go here-->
40 <logger name="com.consol.citrus" level="DEBUG" additivity="false">
41 <appender-ref ref="asyncDebug" />
42 </logger>
43
44
45 <logger name="com.consol.citrus.simulator.http.HttpRequestAnnotationMatcher" level="WARN" additivity="false">
46 <appender-ref ref="asyncDebug" />
47 </logger>
48
49 <logger name="org.onap.so" level="DEBUG" additivity="false">
50 <appender-ref ref="asyncDebug" />
51 </logger>
52
53
54 <root level="INFO">
55 <appender-ref ref="asyncDebug" />
56 </root>
57
58</configuration>