blob: 603d894317ea34ed824edef9355a9945c22a336a [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 Landoed64b5e2017-06-09 03:19:04 +030048 <root level="INFO">
Michael Lando451a3402017-02-19 10:28:42 +020049 <appender-ref ref="DEBUG_ROLLING" />
50 </root>
Michael Landoed64b5e2017-06-09 03:19:04 +030051 <logger name="org.openecomp.sdc" level="INFO" />
Michael Lando451a3402017-02-19 10:28:42 +020052
Michael Lando75aacbb2017-07-17 21:12:03 +030053 <logger name="org.openecomp.sdc.asdctool.migration" level="INFO" >
54 <appender-ref ref="STDOUT"/>
55 </logger>
56
Michael Lando451a3402017-02-19 10:28:42 +020057</configuration>