blob: 0e8d0a822207e82accf78480901b750285352ffb [file] [log] [blame]
Plummer, Brittany2ede5f02019-09-10 11:29:42 -04001<!-- ============LICENSE_START=======================================================
2 ECOMP MSO ================================================================================
3 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. ================================================================================
4 Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 use this file except in compliance with the License. You may obtain a copy
6 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
7 by applicable law or agreed to in writing, software distributed under the
8 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
9 OF ANY KIND, either express or implied. See the License for the specific
10 language governing permissions and limitations under the License. ============LICENSE_END========================================================= -->
11
12<configuration scan="false" debug="false">
13 <contextListener class="org.onap.so.logger.LoggerStartupListener" />
14
15 <property name="queueSize" value="256" />
16 <property name="maxFileSize" value="200MB" />
17 <property name="maxHistory" value="30" />
18 <property name="totalSizeCap" value="10GB" />
19
20 <!-- log file names -->
21 <property name="errorLogName" value="error" />
22 <property name="metricsLogName" value="metrics" />
23 <property name="auditLogName" value="audit" />
24 <property name="debugLogName" value="debug" />
25 <property name="cadiLogName" value="cadi" />
26
27 <property name="currentTimeStamp" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;,UTC}"/>
28
29 <property name="errorPattern"
Plummer, Brittany124f5052020-02-19 19:46:14 -050030 value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%thread|%X{ServiceName:-Unknown}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%.-5level|%X{ErrorCode:-900}|%X{ErrorDesc:-UnknownError}|%msg%nopex%n" />
Plummer, Brittany2ede5f02019-09-10 11:29:42 -040031
32 <property name="debugPattern"
33 value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%logger{50} - %msg%n" />
34
35 <property name="auditPattern"
36 value="%X{EntryTimestamp}|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}|%X{RequestID}|%X{ServiceInstanceId}|%thread||%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}||||%marker|%mdc|||%msg%n" />
37
38 <property name="metricPattern"
39 value="%X{InvokeTimestamp}|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}|%X{RequestID}|%X{ServiceInstanceId}|%thread||%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}||||%X{TargetVirtualEntity}|%marker|%mdc|||%msg%n" />
40
41 <property name="defaultPattern"
42 value="%nopexception%logger
43 \t%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}
44 \t%level
45 \t%replace(%replace(%message){'\t','\\\\t'}){'\n','\\\\n'}
46 \t%replace(%replace(%mdc){'\t','\\\\t'}){'\n','\\\\n'}
47 \t%replace(%replace(%rootException){'\t','\\\\t'}){'\n','\\\\n'}
48 \t%replace(%replace(%marker){'\t','\\\\t'}){'\n','\\\\n'}
49 \t%thread
50 \t%n" />
51
52 <appender name="Audit"
53 class="ch.qos.logback.core.rolling.RollingFileAppender">
54 <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
55 <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator">
56 <marker>EXIT</marker>
57 </evaluator>
58 <onMismatch>DENY</onMismatch>
59 <onMatch>ACCEPT</onMatch>
60 </filter>
61 <file>${logs_dir:-.}/${auditLogName}.log</file>
62 <rollingPolicy
63 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
64 <fileNamePattern>${logs_dir:-.}/${auditLogName}.%d{yyyy-MM-dd}.%i.log.zip
65 </fileNamePattern>
66 <maxFileSize>${maxFileSize}</maxFileSize>
67 <maxHistory>${maxHistory}</maxHistory>
68 <totalSizeCap>${totalSizeCap}</totalSizeCap>
69 </rollingPolicy>
70 <encoder>
71 <pattern>${auditPattern}</pattern>
72 </encoder>
73 </appender>
74
75 <appender name="asyncAudit" class="ch.qos.logback.classic.AsyncAppender">
76 <queueSize>256</queueSize>
77 <appender-ref ref="Audit" />
78 </appender>
79
80 <appender name="Metric"
81 class="ch.qos.logback.core.rolling.RollingFileAppender">
82 <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
83 <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator">
84 <marker>INVOKE-RETURN</marker>
85 </evaluator>
86 <onMismatch>DENY</onMismatch>
87 <onMatch>ACCEPT</onMatch>
88 </filter>
89 <file>${logs_dir:-.}/${metricsLogName}.log</file>
90 <rollingPolicy
91 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
92 <fileNamePattern>${logs_dir:-.}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log.zip
93 </fileNamePattern>
94 <maxFileSize>${maxFileSize}</maxFileSize>
95 <maxHistory>${maxHistory}</maxHistory>
96 <totalSizeCap>${totalSizeCap}</totalSizeCap>
97 </rollingPolicy>
98 <encoder>
99 <pattern>${metricPattern}</pattern>
100 </encoder>
101 </appender>
102
103
104 <appender name="asyncMetric" class="ch.qos.logback.classic.AsyncAppender">
105 <queueSize>256</queueSize>
106 <appender-ref ref="Metric" />
107 </appender>
108
109 <appender name="Error"
110 class="ch.qos.logback.core.rolling.RollingFileAppender">
111 <filter class="ch.qos.logback.classic.filter.LevelFilter">
112 <level>ERROR</level>
113 <onMatch>ACCEPT</onMatch>
114 <onMismatch>DENY</onMismatch>
115 </filter>
116 <file>${logs_dir:-.}/${errorLogName}.log</file>
117 <rollingPolicy
118 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
119 <fileNamePattern>${logs_dir:-.}/${errorLogName}.%d{yyyy-MM-dd}.%i.log.zip
120 </fileNamePattern>
121 <maxFileSize>${maxFileSize}</maxFileSize>
122 <maxHistory>${maxHistory}</maxHistory>
123 <totalSizeCap>${totalSizeCap}</totalSizeCap>
124 </rollingPolicy>
125 <encoder>
126 <pattern>${errorPattern}</pattern>
127 </encoder>
128 </appender>
129
130 <appender name="asyncError" class="ch.qos.logback.classic.AsyncAppender">
131 <queueSize>256</queueSize>
132 <appender-ref ref="Error" />
133 </appender>
134
135 <appender name="Debug"
136 class="ch.qos.logback.core.rolling.RollingFileAppender">
137 <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
138 <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator">
139 <marker>INVOKE</marker>
140 <marker>INVOKE-RETURN</marker>
141 <marker>ENTRY</marker>
142 <marker>EXIT</marker>
143 </evaluator>
144 <onMismatch>ACCEPT</onMismatch>
145 <onMatch>DENY</onMatch>
146 </filter>
147 <file>${logs_dir:-.}/${debugLogName}.log</file>
148 <rollingPolicy
149 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
150 <fileNamePattern>${logs_dir:-.}/${debugLogName}.%d{yyyy-MM-dd}.%i.log.zip
151 </fileNamePattern>
152 <maxFileSize>${maxFileSize}</maxFileSize>
153 <maxHistory>${maxHistory}</maxHistory>
154 <totalSizeCap>${totalSizeCap}</totalSizeCap>
155 </rollingPolicy>
156 <encoder>
157 <pattern>${debugPattern}</pattern>
158 </encoder>
159 </appender>
Plummer, Brittany77415612020-04-04 10:48:18 -0400160
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400161
162 <appender name="asyncDebug" class="ch.qos.logback.classic.AsyncAppender">
163 <queueSize>256</queueSize>
164 <appender-ref ref="Debug" />
165 <includeCallerData>true</includeCallerData>
166 </appender>
167
168 <appender name="Cadi"
169 class="ch.qos.logback.core.rolling.RollingFileAppender">
170 <file>${logs_dir:-.}/${cadiLogName}.log</file>
171 <rollingPolicy
172 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
173 <fileNamePattern>${logs_dir:-.}/${cadiLogName}.%d{yyyy-MM-dd}.%i.log.zip
174 </fileNamePattern>
175 <maxFileSize>${maxFileSize}</maxFileSize>
176 <maxHistory>${maxHistory}</maxHistory>
177 <totalSizeCap>${totalSizeCap}</totalSizeCap>
178 </rollingPolicy>
179 <encoder>
180 <pattern>${debugPattern}</pattern>
181 </encoder>
182 </appender>
183
184 <appender name="asyncCadi" class="ch.qos.logback.classic.AsyncAppender">
185 <queueSize>256</queueSize>
186 <appender-ref ref="Cadi" />
187 <includeCallerData>true</includeCallerData>
188 </appender>
189
190 <!-- Spring related loggers -->
191 <logger name="org.springframework" level="WARN" />
192 <logger
193 name="org.springframework.security.authentication.dao.DaoAuthenticationProvider"
Plummer, Brittany77415612020-04-04 10:48:18 -0400194 level="${LOG_LEVEL:-DEBUG}" />
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400195
196 <!-- Camunda related loggers -->
Plummer, Brittany77415612020-04-04 10:48:18 -0400197 <logger name="org.camunda.bpm.engine.jobexecutor.level" level="${LOG_LEVEL:-DEBUG}" />
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400198 <logger
199 name="org.camunda.bpm.engine.impl.persistence.entity.JobEntity.level"
Plummer, Brittany77415612020-04-04 10:48:18 -0400200 level="${LOG_LEVEL:-DEBUG}" />
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400201
Plummer, Brittany77415612020-04-04 10:48:18 -0400202 <logger name="org.flywaydb" level="${LOG_LEVEL:-DEBUG}"/>
203 <logger name="org.apache.wire" level="${LOG_LEVEL:-DEBUG}" />
204 <logger name="org.onap" level="${LOG_LEVEL:-DEBUG}" />
205 <logger name="org.apache.cxf.interceptor" level="${LOG_LEVEL:-DEBUG}" />
206 <logger name="com.woorea.openstack.connector" level="${LOG_LEVEL:-DEBUG}" />
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400207
208 <!-- AAF Logs go here-->
Smokowski, Stevenfbb984e2020-04-01 10:41:17 -0400209 <logger name="org.apache.catalina.core.ContainerBase" level="WARN" additivity="false">
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400210 <appender-ref ref="asyncCadi" />
211 </logger>
Plummer, Brittany77415612020-04-04 10:48:18 -0400212
213 <!-- Jersey Openstack Connector Logs Go Here for Openstack4J -->
214 <logger name="os" level="${LOG_LEVEL:-DEBUG}" />
215
216 <logger name="org.reflections" level="ERROR" additivity="false" />
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400217
218 <logger name="AUDIT" level="INFO" additivity="false">
219 <appender-ref ref="asyncAudit" />
220 </logger>
221
222 <logger name="METRIC" level="INFO" additivity="false">
223 <appender-ref ref="asyncMetric" />
224 </logger>
225
226 <root level="INFO">
227 <appender-ref ref="asyncDebug" />
228 <appender-ref ref="asyncError" />
229 <appender-ref ref="asyncAudit" />
230 <appender-ref ref="asyncMetric" />
231 </root>
232
233</configuration>