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 | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 48 | <root level="INFO"> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 49 | <appender-ref ref="DEBUG_ROLLING" /> |
| 50 | </root> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 51 | <logger name="org.openecomp.sdc" level="INFO" /> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 52 | |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 53 | <logger name="org.openecomp.sdc.asdctool.migration" level="INFO" > |
| 54 | <appender-ref ref="STDOUT"/> |
| 55 | </logger> |
| 56 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 57 | </configuration> |