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"> |
| 10 | <layout class="ch.qos.logback.classic.PatternLayout"> |
| 11 | <encoder> |
| 12 | <pattern>${default-log-pattern}</pattern> |
| 13 | </encoder> |
| 14 | </layout> |
| 15 | </appender> |
| 16 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 17 | <appender name="DEBUG_ROLLING" |
| 18 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 19 | <file>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log</file> |
| 20 | |
| 21 | <!-- accept DEBUG and TRACE level --> |
| 22 | <!--<filter class="ch.qos.logback.core.filter.EvaluatorFilter">--> |
| 23 | <!--<evaluator class="ch.qos.logback.classic.boolex.GEventEvaluator">--> |
| 24 | <!--<expression>--> |
| 25 | <!--e.level.toInt() <= DEBUG.toInt()--> |
| 26 | <!--</expression>--> |
| 27 | <!--</evaluator>--> |
| 28 | <!--<OnMismatch>DENY</OnMismatch>--> |
| 29 | <!--<OnMatch>NEUTRAL</OnMatch>--> |
| 30 | <!--</filter>--> |
| 31 | |
| 32 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 33 | <fileNamePattern>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log.%i |
| 34 | </fileNamePattern> |
| 35 | <minIndex>1</minIndex> |
| 36 | <maxIndex>10</maxIndex> |
| 37 | </rollingPolicy> |
| 38 | |
| 39 | <triggeringPolicy |
| 40 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 41 | <maxFileSize>20MB</maxFileSize> |
| 42 | </triggeringPolicy> |
| 43 | <encoder> |
| 44 | <pattern>${default-log-pattern}</pattern> |
| 45 | </encoder> |
| 46 | </appender> |
| 47 | |
Michael Lando | b3d4898 | 2017-06-11 14:22:02 +0300 | [diff] [blame] | 48 | <appender name="MALFORMED_DATA" |
| 49 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 50 | <file>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/malformed-data.log</file> |
| 51 | |
| 52 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 53 | <fileNamePattern>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/malformed-data.log.%i |
| 54 | </fileNamePattern> |
| 55 | <minIndex>1</minIndex> |
| 56 | <maxIndex>10</maxIndex> |
| 57 | </rollingPolicy> |
| 58 | |
| 59 | <triggeringPolicy |
| 60 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 61 | <maxFileSize>20MB</maxFileSize> |
| 62 | </triggeringPolicy> |
| 63 | <encoder> |
| 64 | <pattern>${default-log-pattern}</pattern> |
| 65 | </encoder> |
| 66 | </appender> |
| 67 | |
| 68 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 69 | <root level="INFO"> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 70 | <appender-ref ref="DEBUG_ROLLING" /> |
| 71 | </root> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 72 | <logger name="org.openecomp.sdc" level="INFO" /> |
Michael Lando | b3d4898 | 2017-06-11 14:22:02 +0300 | [diff] [blame] | 73 | <logger name="org.openecomp.sdc.be.model.operations.migration" level="ERROR" > |
| 74 | <appender-ref ref="MALFORMED_DATA"/> |
| 75 | </logger> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 76 | |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 77 | <logger name="org.openecomp.sdc.asdctool.migration" level="INFO" > |
| 78 | <appender-ref ref="STDOUT"/> |
| 79 | </logger> |
| 80 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 81 | </configuration> |