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" /> |
| 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 | b3d4898 | 2017-06-11 14:22:02 +0300 | [diff] [blame] | 39 | <appender name="MALFORMED_DATA" |
| 40 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 41 | <file>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/malformed-data.log</file> |
| 42 | |
| 43 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 44 | <fileNamePattern>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/malformed-data.log.%i |
| 45 | </fileNamePattern> |
| 46 | <minIndex>1</minIndex> |
| 47 | <maxIndex>10</maxIndex> |
| 48 | </rollingPolicy> |
| 49 | |
| 50 | <triggeringPolicy |
| 51 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 52 | <maxFileSize>20MB</maxFileSize> |
| 53 | </triggeringPolicy> |
| 54 | <encoder> |
| 55 | <pattern>${default-log-pattern}</pattern> |
| 56 | </encoder> |
| 57 | </appender> |
| 58 | |
| 59 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 60 | <root level="INFO"> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 61 | <appender-ref ref="DEBUG_ROLLING" /> |
| 62 | </root> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 63 | <logger name="org.openecomp.sdc" level="INFO" /> |
Michael Lando | b3d4898 | 2017-06-11 14:22:02 +0300 | [diff] [blame] | 64 | <logger name="org.openecomp.sdc.be.model.operations.migration" level="ERROR" > |
| 65 | <appender-ref ref="MALFORMED_DATA"/> |
| 66 | </logger> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 67 | |
| 68 | </configuration> |