Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <configuration> |
Michael Lando | b3d4898 | 2017-06-11 14:22:02 +0300 | [diff] [blame] | 3 | <property scope="system" name="ECOMP-component-name" value="SDC" /> |
| 4 | <property scope="system" name="ECOMP-subcomponent-name" value="SDC-TOOL" /> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 5 | <property name="default-log-pattern" |
| 6 | value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{uuid}|%X{serviceInstanceID}|%thread||${ECOMP-subcomponent-name}|%X{userId}|%level|%X{alarmSeverity}|%X{localAddr}|${beFqdn}|%X{remoteAddr}|%logger{35}|%X{timer}|ActivityType=<%M>, Desc=<%msg>%n" /> |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 7 | |
| 8 | |
| 9 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 10 | <encoder> |
| 11 | <pattern>${default-log-pattern}</pattern> |
| 12 | </encoder> |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 13 | </appender> |
| 14 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 15 | <appender name="DEBUG_ROLLING" |
| 16 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 17 | <file>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log</file> |
| 18 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 19 | |
| 20 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 21 | <fileNamePattern>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log.%i |
| 22 | </fileNamePattern> |
| 23 | <minIndex>1</minIndex> |
| 24 | <maxIndex>10</maxIndex> |
| 25 | </rollingPolicy> |
| 26 | |
| 27 | <triggeringPolicy |
| 28 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 29 | <maxFileSize>20MB</maxFileSize> |
| 30 | </triggeringPolicy> |
| 31 | <encoder> |
| 32 | <pattern>${default-log-pattern}</pattern> |
| 33 | </encoder> |
| 34 | </appender> |
| 35 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 36 | <root level="INFO"> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 37 | <appender-ref ref="DEBUG_ROLLING" /> |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 38 | <appender-ref ref="STDOUT"/> |
Michael Lando | 310804a | 2018-05-06 20:45:00 +0300 | [diff] [blame] | 39 | </root> |
| 40 | |
| 41 | <logger name="org.openecomp.sdc" level="INFO" /> |
| 42 | <logger name="org.openecomp.sdc.asdctool.migration" level="INFO" /> |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 43 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 44 | </configuration> |