aboutsummaryrefslogtreecommitdiffstats
path: root/asdctool/src/main/resources/config/logback.xml
blob: 0426a32d9e2cecdac2a3c2002ec14d1512fc8820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
	<property scope="system" name="ECOMP-component-name" value="SDC" />
	<property scope="system" name="ECOMP-subcomponent-name" value="SDC-TOOL" />
	<property name="default-log-pattern"
		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" />
	
	<appender name="DEBUG_ROLLING"
		class="ch.qos.logback.core.rolling.RollingFileAppender">
		<file>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log</file>

		<!-- accept DEBUG and TRACE level -->
		<!--<filter class="ch.qos.logback.core.filter.EvaluatorFilter">-->
			<!--<evaluator class="ch.qos.logback.classic.boolex.GEventEvaluator">-->
				<!--<expression>-->
					<!--e.level.toInt() &lt;= DEBUG.toInt()-->
				<!--</expression>-->
			<!--</evaluator>-->
			<!--<OnMismatch>DENY</OnMismatch>-->
			<!--<OnMatch>NEUTRAL</OnMatch>-->
		<!--</filter>-->

		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log.%i
			</fileNamePattern>
			<minIndex>1</minIndex>
			<maxIndex>10</maxIndex>
		</rollingPolicy>

		<triggeringPolicy
			class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			<maxFileSize>20MB</maxFileSize>
		</triggeringPolicy>
		<encoder>
			<pattern>${default-log-pattern}</pattern>
		</encoder>
	</appender>

	<appender name="MALFORMED_DATA"
			  class="ch.qos.logback.core.rolling.RollingFileAppender">
		<file>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/malformed-data.log</file>

		<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
			<fileNamePattern>${HOME}/asdctool/logs/${ECOMP-component-name}/${ECOMP-subcomponent-name}/malformed-data.log.%i
			</fileNamePattern>
			<minIndex>1</minIndex>
			<maxIndex>10</maxIndex>
		</rollingPolicy>

		<triggeringPolicy
				class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
			<maxFileSize>20MB</maxFileSize>
		</triggeringPolicy>
		<encoder>
			<pattern>${default-log-pattern}</pattern>
		</encoder>
	</appender>


	<root level="INFO">
		<appender-ref ref="DEBUG_ROLLING" />
	</root>
	<logger name="org.openecomp.sdc" level="INFO" />
	<logger name="org.openecomp.sdc.be.model.operations.migration" level="ERROR" >
		<appender-ref ref="MALFORMED_DATA"/>
	</logger>

</configuration>