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 | |
niamhcore | 4a0676c | 2020-12-17 12:53:50 +0000 | [diff] [blame] | 17 | <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 Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 25 | </appender> |
| 26 | |
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 27 | <root level="INFO"> |
niamhcore | 4a0676c | 2020-12-17 12:53:50 +0000 | [diff] [blame] | 28 | <appender-ref ref="CONSOLE" /> |
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 29 | </root> |
| 30 | |
niamhcore | 4a0676c | 2020-12-17 12:53:50 +0000 | [diff] [blame] | 31 | <!-- 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 Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 62 | </configuration> |