Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 1 | <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{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX",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>../log/${logName}.log</file> |
| 20 | <rollingPolicy |
| 21 | class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
Rishi Chail | b08767e | 2020-09-21 11:27:32 +0100 | [diff] [blame] | 22 | <fileNamePattern>${logName}.%d{yyyy-MM-dd}.%i.log.zip |
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 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 | <logger name="org.onap.cps" level="DEBUG" additivity="false"> |
| 40 | <appender-ref ref="asyncDebug" /> |
| 41 | </logger> |
| 42 | |
| 43 | |
| 44 | <root level="INFO"> |
| 45 | <appender-ref ref="asyncDebug" /> |
| 46 | </root> |
| 47 | |
| 48 | </configuration> |