Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <configuration> |
| 3 | <property scope="system" name="ECOMP-component-name" value="ASDC" /> |
| 4 | <property scope="system" name="ECOMP-subcomponent-name" value="ASDC-TOOL" /> |
| 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" /> |
| 7 | |
| 8 | <appender name="DEBUG_ROLLING" |
| 9 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 10 | <file>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log</file> |
| 11 | |
| 12 | <!-- accept DEBUG and TRACE level --> |
| 13 | <!--<filter class="ch.qos.logback.core.filter.EvaluatorFilter">--> |
| 14 | <!--<evaluator class="ch.qos.logback.classic.boolex.GEventEvaluator">--> |
| 15 | <!--<expression>--> |
| 16 | <!--e.level.toInt() <= DEBUG.toInt()--> |
| 17 | <!--</expression>--> |
| 18 | <!--</evaluator>--> |
| 19 | <!--<OnMismatch>DENY</OnMismatch>--> |
| 20 | <!--<OnMatch>NEUTRAL</OnMatch>--> |
| 21 | <!--</filter>--> |
| 22 | |
| 23 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 24 | <fileNamePattern>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log.%i |
| 25 | </fileNamePattern> |
| 26 | <minIndex>1</minIndex> |
| 27 | <maxIndex>10</maxIndex> |
| 28 | </rollingPolicy> |
| 29 | |
| 30 | <triggeringPolicy |
| 31 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 32 | <maxFileSize>20MB</maxFileSize> |
| 33 | </triggeringPolicy> |
| 34 | <encoder> |
| 35 | <pattern>${default-log-pattern}</pattern> |
| 36 | </encoder> |
| 37 | </appender> |
| 38 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame^] | 39 | <root level="INFO"> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 40 | <appender-ref ref="DEBUG_ROLLING" /> |
| 41 | </root> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame^] | 42 | <logger name="org.openecomp.sdc" level="INFO" /> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 43 | |
| 44 | </configuration> |