blob: bd9712ad87e6a560c0158de6ddd123c5714e94d5 [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, Brittany8973da02020-04-29 15:28:15 -040030 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}|%replace(%msg){'\n',' '}%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">
Plummer, Brittany195760a2020-05-11 14:25:19 -040055 <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator">
56 <marker>ENTRY</marker>
Plummer, Brittany2ede5f02019-09-10 11:29:42 -040057 <marker>EXIT</marker>
58 </evaluator>
59 <onMismatch>DENY</onMismatch>
60 <onMatch>ACCEPT</onMatch>
61 </filter>
62 <file>${logs_dir:-.}/${auditLogName}.log</file>
63 <rollingPolicy
64 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
65 <fileNamePattern>${logs_dir:-.}/${auditLogName}.%d{yyyy-MM-dd}.%i.log.zip
66 </fileNamePattern>
67 <maxFileSize>${maxFileSize}</maxFileSize>
68 <maxHistory>${maxHistory}</maxHistory>
69 <totalSizeCap>${totalSizeCap}</totalSizeCap>
70 </rollingPolicy>
71 <encoder>
72 <pattern>${auditPattern}</pattern>
73 </encoder>
74 </appender>
75
76 <appender name="asyncAudit" class="ch.qos.logback.classic.AsyncAppender">
77 <queueSize>256</queueSize>
78 <appender-ref ref="Audit" />
79 </appender>
80
81 <appender name="Metric"
82 class="ch.qos.logback.core.rolling.RollingFileAppender">
83 <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
Plummer, Brittany195760a2020-05-11 14:25:19 -040084 <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator">
85 <marker>INVOKE</marker>
Plummer, Brittany2ede5f02019-09-10 11:29:42 -040086 <marker>INVOKE-RETURN</marker>
87 </evaluator>
88 <onMismatch>DENY</onMismatch>
89 <onMatch>ACCEPT</onMatch>
90 </filter>
91 <file>${logs_dir:-.}/${metricsLogName}.log</file>
92 <rollingPolicy
93 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
94 <fileNamePattern>${logs_dir:-.}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log.zip
95 </fileNamePattern>
96 <maxFileSize>${maxFileSize}</maxFileSize>
97 <maxHistory>${maxHistory}</maxHistory>
98 <totalSizeCap>${totalSizeCap}</totalSizeCap>
99 </rollingPolicy>
100 <encoder>
101 <pattern>${metricPattern}</pattern>
102 </encoder>
103 </appender>
104
105
106 <appender name="asyncMetric" class="ch.qos.logback.classic.AsyncAppender">
107 <queueSize>256</queueSize>
108 <appender-ref ref="Metric" />
109 </appender>
110
111 <appender name="Error"
112 class="ch.qos.logback.core.rolling.RollingFileAppender">
113 <filter class="ch.qos.logback.classic.filter.LevelFilter">
114 <level>ERROR</level>
115 <onMatch>ACCEPT</onMatch>
116 <onMismatch>DENY</onMismatch>
117 </filter>
118 <file>${logs_dir:-.}/${errorLogName}.log</file>
119 <rollingPolicy
120 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
121 <fileNamePattern>${logs_dir:-.}/${errorLogName}.%d{yyyy-MM-dd}.%i.log.zip
122 </fileNamePattern>
123 <maxFileSize>${maxFileSize}</maxFileSize>
124 <maxHistory>${maxHistory}</maxHistory>
125 <totalSizeCap>${totalSizeCap}</totalSizeCap>
126 </rollingPolicy>
127 <encoder>
128 <pattern>${errorPattern}</pattern>
129 </encoder>
130 </appender>
131
132 <appender name="asyncError" class="ch.qos.logback.classic.AsyncAppender">
133 <queueSize>256</queueSize>
134 <appender-ref ref="Error" />
135 </appender>
136
137 <appender name="Debug"
138 class="ch.qos.logback.core.rolling.RollingFileAppender">
139 <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
140 <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator">
141 <marker>INVOKE</marker>
142 <marker>INVOKE-RETURN</marker>
143 <marker>ENTRY</marker>
144 <marker>EXIT</marker>
145 </evaluator>
146 <onMismatch>ACCEPT</onMismatch>
147 <onMatch>DENY</onMatch>
148 </filter>
149 <file>${logs_dir:-.}/${debugLogName}.log</file>
150 <rollingPolicy
151 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
152 <fileNamePattern>${logs_dir:-.}/${debugLogName}.%d{yyyy-MM-dd}.%i.log.zip
153 </fileNamePattern>
154 <maxFileSize>${maxFileSize}</maxFileSize>
155 <maxHistory>${maxHistory}</maxHistory>
156 <totalSizeCap>${totalSizeCap}</totalSizeCap>
157 </rollingPolicy>
158 <encoder>
159 <pattern>${debugPattern}</pattern>
160 </encoder>
161 </appender>
Plummer, Brittany77415612020-04-04 10:48:18 -0400162
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400163
164 <appender name="asyncDebug" class="ch.qos.logback.classic.AsyncAppender">
165 <queueSize>256</queueSize>
166 <appender-ref ref="Debug" />
167 <includeCallerData>true</includeCallerData>
168 </appender>
169
170 <appender name="Cadi"
171 class="ch.qos.logback.core.rolling.RollingFileAppender">
172 <file>${logs_dir:-.}/${cadiLogName}.log</file>
173 <rollingPolicy
174 class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
175 <fileNamePattern>${logs_dir:-.}/${cadiLogName}.%d{yyyy-MM-dd}.%i.log.zip
176 </fileNamePattern>
177 <maxFileSize>${maxFileSize}</maxFileSize>
178 <maxHistory>${maxHistory}</maxHistory>
179 <totalSizeCap>${totalSizeCap}</totalSizeCap>
180 </rollingPolicy>
181 <encoder>
182 <pattern>${debugPattern}</pattern>
183 </encoder>
184 </appender>
185
186 <appender name="asyncCadi" class="ch.qos.logback.classic.AsyncAppender">
187 <queueSize>256</queueSize>
188 <appender-ref ref="Cadi" />
189 <includeCallerData>true</includeCallerData>
190 </appender>
191
192 <!-- Spring related loggers -->
193 <logger name="org.springframework" level="WARN" />
194 <logger
195 name="org.springframework.security.authentication.dao.DaoAuthenticationProvider"
Plummer, Brittany77415612020-04-04 10:48:18 -0400196 level="${LOG_LEVEL:-DEBUG}" />
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400197
198 <!-- Camunda related loggers -->
Plummer, Brittany77415612020-04-04 10:48:18 -0400199 <logger name="org.camunda.bpm.engine.jobexecutor.level" level="${LOG_LEVEL:-DEBUG}" />
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400200 <logger
201 name="org.camunda.bpm.engine.impl.persistence.entity.JobEntity.level"
Plummer, Brittany77415612020-04-04 10:48:18 -0400202 level="${LOG_LEVEL:-DEBUG}" />
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400203
Plummer, Brittany77415612020-04-04 10:48:18 -0400204 <logger name="org.flywaydb" level="${LOG_LEVEL:-DEBUG}"/>
205 <logger name="org.apache.wire" level="${LOG_LEVEL:-DEBUG}" />
206 <logger name="org.onap" level="${LOG_LEVEL:-DEBUG}" />
207 <logger name="org.apache.cxf.interceptor" level="${LOG_LEVEL:-DEBUG}" />
208 <logger name="com.woorea.openstack.connector" level="${LOG_LEVEL:-DEBUG}" />
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400209
210 <!-- AAF Logs go here-->
Smokowski, Stevenfbb984e2020-04-01 10:41:17 -0400211 <logger name="org.apache.catalina.core.ContainerBase" level="WARN" additivity="false">
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400212 <appender-ref ref="asyncCadi" />
213 </logger>
Plummer, Brittany77415612020-04-04 10:48:18 -0400214
215 <!-- Jersey Openstack Connector Logs Go Here for Openstack4J -->
216 <logger name="os" level="${LOG_LEVEL:-DEBUG}" />
217
218 <logger name="org.reflections" level="ERROR" additivity="false" />
Plummer, Brittany2ede5f02019-09-10 11:29:42 -0400219
220 <logger name="AUDIT" level="INFO" additivity="false">
221 <appender-ref ref="asyncAudit" />
222 </logger>
223
224 <logger name="METRIC" level="INFO" additivity="false">
225 <appender-ref ref="asyncMetric" />
226 </logger>
227
228 <root level="INFO">
229 <appender-ref ref="asyncDebug" />
230 <appender-ref ref="asyncError" />
231 <appender-ref ref="asyncAudit" />
232 <appender-ref ref="asyncMetric" />
233 </root>
234
235</configuration>