blob: dadc5254a5b8173e797adeb9f37dd0abb7086833 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001<?xml version="1.0" encoding="UTF-8"?>
2<configuration>
Michael Landob3d48982017-06-11 14:22:02 +03003 <property scope="system" name="ECOMP-component-name" value="SDC" />
4 <property scope="system" name="ECOMP-subcomponent-name" value="SDC-TOOL" />
Michael Lando451a3402017-02-19 10:28:42 +02005 <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=&lt;%M&gt;, Desc=&lt;%msg&gt;%n" />
Michael Lando75aacbb2017-07-17 21:12:03 +03007
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 Lando451a3402017-02-19 10:28:42 +020017 <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() &lt;= 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 Landob3d48982017-06-11 14:22:02 +030048 <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 Landoed64b5e2017-06-09 03:19:04 +030069 <root level="INFO">
Michael Lando451a3402017-02-19 10:28:42 +020070 <appender-ref ref="DEBUG_ROLLING" />
71 </root>
Michael Landoed64b5e2017-06-09 03:19:04 +030072 <logger name="org.openecomp.sdc" level="INFO" />
Michael Landob3d48982017-06-11 14:22:02 +030073 <logger name="org.openecomp.sdc.be.model.operations.migration" level="ERROR" >
74 <appender-ref ref="MALFORMED_DATA"/>
75 </logger>
Michael Lando451a3402017-02-19 10:28:42 +020076
Michael Lando75aacbb2017-07-17 21:12:03 +030077 <logger name="org.openecomp.sdc.asdctool.migration" level="INFO" >
78 <appender-ref ref="STDOUT"/>
79 </logger>
80
Michael Lando451a3402017-02-19 10:28:42 +020081</configuration>