1 <?xml version="1.0" encoding="UTF-8"?>
4 ~ Copyright © 2016-2018 European Support Limited
6 ~ Licensed under the Apache License, Version 2.0 (the "License");
7 ~ you may not use this file except in compliance with the License.
8 ~ You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~ Unless required by applicable law or agreed to in writing, software
13 ~ distributed under the License is distributed on an "AS IS" BASIS,
14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ~ See the License for the specific language governing permissions and
16 ~ limitations under the License.
19 <configuration scan="true" scanPeriod="5 seconds">
20 <property scope="system" name="ONAP-component-name" value="activity-spec" />
21 <property scope="system" name="ONAP-subcomponent-name" value="be" />
22 <property name="log.home" value="/var/log/ONAP" />
23 <property name="log.location" value="${log.home}/${ONAP-component-name}/${ONAP-subcomponent-name}"/>
26 <appender name="ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
28 <file>${log.location}/error.log</file>
30 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
34 <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
35 <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator">
36 <marker>AUDIT</marker>
38 <onMismatch>NEUTRAL</onMismatch>
39 <onMatch>DENY</onMatch>
42 <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
43 <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator">
44 <marker>METRICS</marker>
46 <onMismatch>NEUTRAL</onMismatch>
47 <onMatch>DENY</onMatch>
50 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
51 <fileNamePattern>${log.location}/error.log.%i
53 <minIndex>1</minIndex>
54 <maxIndex>10</maxIndex>
58 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
59 <maxFileSize>20MB</maxFileSize>
64 %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestId}|%thread||%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%level||%X{ErrorCode}|%X{ErrorDescription}|%msg%n
70 <appender name="DEBUG" class="ch.qos.logback.core.rolling.RollingFileAppender">
72 <file>${log.location}/debug.log</file>
74 <filter class="ch.qos.logback.classic.filter.LevelFilter">
76 <onMatch>ACCEPT</onMatch>
77 <onMismatch>DENY</onMismatch>
80 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
81 <fileNamePattern>${log.location}/debug.log.%i
83 <minIndex>1</minIndex>
84 <maxIndex>10</maxIndex>
88 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
89 <maxFileSize>20MB</maxFileSize>
94 %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestId}|%msg%n
99 <!-- Asynchronicity Configurations -->
100 <appender name="ASYNC_DEBUG" class="ch.qos.logback.classic.AsyncAppender">
101 <appender-ref ref="DEBUG" />
104 <appender name="AUDIT" class="ch.qos.logback.core.rolling.RollingFileAppender">
106 <file>${log.location}/audit.log</file>
108 <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
109 <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator">
110 <marker>AUDIT</marker>
112 <onMismatch>DENY</onMismatch>
113 <onMatch>ACCEPT</onMatch>
116 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
117 <fileNamePattern>${log.location}/audit.log.%i
119 <minIndex>1</minIndex>
120 <maxIndex>10</maxIndex>
124 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
125 <maxFileSize>20MB</maxFileSize>
130 %X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%thread||%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceId}|%level||%X{ServerIpAddress}|%X{ElapsedTime}|%X{Server}|%X{ClientIpAddress}||||||||%msg%n
135 <appender name="METRICS" class="ch.qos.logback.core.rolling.RollingFileAppender">
137 <file>${log.location}/metrics.log</file>
139 <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
140 <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator">
141 <marker>METRICS</marker>
143 <onMismatch>DENY</onMismatch>
144 <onMatch>ACCEPT</onMatch>
147 <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
148 <fileNamePattern>${log.location}/metrics.log.%i
150 <minIndex>1</minIndex>
151 <maxIndex>10</maxIndex>
155 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
156 <maxFileSize>20MB</maxFileSize>
161 %X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%thread||%X{ServiceName}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceId}|%level||%X{ServerIpAddress}|%X{ElapsedTime}|%X{Server}|%X{ClientIpAddress}||||||||||%msg%n
167 <appender-ref ref="ERROR"/>
168 <appender-ref ref="ASYNC_DEBUG"/>
169 <appender-ref ref="AUDIT"/>
170 <appender-ref ref="METRICS"/>