Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Integrity Audit |
| 4 | ================================================================================ |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 5 | Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved. |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 6 | ================================================================================ |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 10 | |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 11 | http://www.apache.org/licenses/LICENSE-2.0 |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 12 | |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | ============LICENSE_END========================================================= |
| 19 | --> |
| 20 | |
| 21 | <!-- Controls the output of logs for JUnit tests --> |
| 22 | |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 23 | <configuration |
| 24 | scan="true" |
| 25 | scanPeriod="3 seconds" |
| 26 | debug="true"> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 27 | <!--<jmxConfigurator /> --> |
| 28 | <!-- directory path for all other type logs --> |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 29 | <property |
| 30 | name="logDir" |
| 31 | value="testingLogs" /> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 32 | |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 33 | <!-- directory path for debugging type logs --> |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 34 | <property |
| 35 | name="debugDir" |
| 36 | value="testingLogs" /> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 37 | |
| 38 | <!-- specify the component name |
Guo Ruijing | f8a620d | 2017-07-28 08:21:14 +0000 | [diff] [blame] | 39 | <ONAP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" --> |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 40 | <property |
| 41 | name="componentName" |
| 42 | value="common-modules"></property> |
| 43 | <property |
| 44 | name="subComponentName" |
| 45 | value="integrity-audit"></property> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 46 | |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 47 | <!-- log file names --> |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 48 | <property |
| 49 | name="errorLogName" |
| 50 | value="error" /> |
| 51 | <property |
| 52 | name="metricsLogName" |
| 53 | value="metrics" /> |
| 54 | <property |
| 55 | name="auditLogName" |
| 56 | value="audit" /> |
| 57 | <property |
| 58 | name="debugLogName" |
| 59 | value="debug" /> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 60 | |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 61 | <property |
| 62 | name="defaultPatternTimestamp" |
| 63 | value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX, UTC}" /> |
| 64 | |
| 65 | <property |
| 66 | name="defaultPatternTarget" |
| 67 | value="%X{requestId}|%X{serviceInstanceId}|%t|%X{serverName}|%X{serviceName}|%X{instanceUuid}" /> |
| 68 | |
| 69 | |
| 70 | <property |
| 71 | name="defaultPatternDetails" |
| 72 | value="%X{severity}|%X{serverIpAddress}|%X{server}|%X{clientIpAddress}" /> |
| 73 | |
| 74 | <property |
| 75 | name="defaultPattern" |
| 76 | value="${defaultPatternTimestamp}|${defaultPatternTarget}|%p|${defaultPatternDetails}|%c||%msg%n" /> |
| 77 | |
| 78 | <property |
| 79 | name="logDirectory" |
| 80 | value="${logDir}/${componentName}/${subComponentName}" /> |
| 81 | <property |
| 82 | name="debugLogDirectory" |
| 83 | value="${debugDir}/${componentName}/${subComponentName}" /> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 84 | <!-- |
| 85 | <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" /> |
| 86 | <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" /> |
| 87 | --> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 88 | <!-- example from old log4j.properties: ${catalina.base}/logs/pdp-rest.log --> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 89 | <!-- Example evaluator filter applied against console appender --> |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 90 | <appender |
| 91 | name="STDOUT" |
| 92 | class="ch.qos.logback.core.ConsoleAppender"> |
| 93 | <encoder> |
| 94 | <pattern>${defaultPattern}</pattern> |
| 95 | </encoder> |
| 96 | </appender> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 97 | |
| 98 | <!-- ============================================================================ --> |
| 99 | <!-- EELF Appenders --> |
| 100 | <!-- ============================================================================ --> |
| 101 | |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 102 | <!-- The EELFAppender is used to record events to the general application |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 103 | log --> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 104 | |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 105 | |
| 106 | |
| 107 | |
| 108 | <!-- EELF Audit Appender. This appender is used to record audit engine |
| 109 | related logging events. The audit logger and appender are specializations |
| 110 | of the EELF application root logger and appender. This can be used to segregate |
| 111 | Policy engine events from other components, or it can be eliminated to record |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 112 | these events as part of the application root log. --> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 113 | |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 114 | <appender |
| 115 | name="EELFAudit" |
| 116 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 117 | <file>${logDirectory}/${auditLogName}.log</file> |
| 118 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 119 | <fileNamePattern>${logDirectory}/${auditLogName}.%i.log.zip |
| 120 | </fileNamePattern> |
| 121 | <minIndex>1</minIndex> |
| 122 | <maxIndex>9</maxIndex> |
| 123 | </rollingPolicy> |
| 124 | <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 125 | <maxFileSize>5MB</maxFileSize> |
| 126 | </triggeringPolicy> |
| 127 | <encoder> |
| 128 | <pattern>${defaultPattern}</pattern> |
| 129 | </encoder> |
| 130 | </appender> |
| 131 | <appender |
| 132 | name="asyncEELFAudit" |
| 133 | class="ch.qos.logback.classic.AsyncAppender"> |
| 134 | <queueSize>256</queueSize> |
| 135 | <appender-ref ref="EELFAudit" /> |
| 136 | </appender> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 137 | |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 138 | <appender |
| 139 | name="EELFMetrics" |
| 140 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 141 | <file>${logDirectory}/${metricsLogName}.log</file> |
| 142 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 143 | <fileNamePattern>${logDirectory}/${metricsLogName}.%i.log.zip |
| 144 | </fileNamePattern> |
| 145 | <minIndex>1</minIndex> |
| 146 | <maxIndex>9</maxIndex> |
| 147 | </rollingPolicy> |
| 148 | <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 149 | <maxFileSize>5MB</maxFileSize> |
| 150 | </triggeringPolicy> |
| 151 | <encoder> |
| 152 | <pattern>${defaultPattern}</pattern> |
| 153 | </encoder> |
| 154 | </appender> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 155 | |
| 156 | |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 157 | <appender |
| 158 | name="asyncEELFMetrics" |
| 159 | class="ch.qos.logback.classic.AsyncAppender"> |
| 160 | <queueSize>256</queueSize> |
| 161 | <appender-ref ref="EELFMetrics" /> |
| 162 | </appender> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 163 | |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 164 | <appender |
| 165 | name="EELFError" |
| 166 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 167 | <file>${logDirectory}/${errorLogName}.log</file> |
| 168 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 169 | <fileNamePattern>${logDirectory}/${errorLogName}.%i.log.zip |
| 170 | </fileNamePattern> |
| 171 | <minIndex>1</minIndex> |
| 172 | <maxIndex>9</maxIndex> |
| 173 | </rollingPolicy> |
| 174 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 175 | <level>ERROR</level> |
| 176 | </filter> |
| 177 | <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 178 | <maxFileSize>5MB</maxFileSize> |
| 179 | </triggeringPolicy> |
| 180 | <encoder> |
| 181 | <pattern>${defaultPattern}</pattern> |
| 182 | </encoder> |
| 183 | </appender> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 184 | |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 185 | <appender |
| 186 | name="asyncEELFError" |
| 187 | class="ch.qos.logback.classic.AsyncAppender"> |
| 188 | <queueSize>256</queueSize> |
| 189 | <appender-ref ref="EELFError" /> |
| 190 | </appender> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 191 | |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 192 | <appender |
| 193 | name="EELFDebug" |
| 194 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 195 | <file>${debugLogDirectory}/${debugLogName}.log</file> |
| 196 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 197 | <fileNamePattern>${debugLogDirectory}/${debugLogName}.%i.log.zip |
| 198 | </fileNamePattern> |
| 199 | <minIndex>1</minIndex> |
| 200 | <maxIndex>9</maxIndex> |
| 201 | </rollingPolicy> |
| 202 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 203 | <level>DEBUG</level> |
| 204 | </filter> |
| 205 | <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 206 | <maxFileSize>5MB</maxFileSize> |
| 207 | </triggeringPolicy> |
| 208 | <encoder> |
| 209 | <pattern>${defaultPattern}</pattern> |
| 210 | </encoder> |
| 211 | </appender> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 212 | |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 213 | <appender |
| 214 | name="asyncEELFDebug" |
| 215 | class="ch.qos.logback.classic.AsyncAppender"> |
| 216 | <queueSize>256</queueSize> |
| 217 | <appender-ref ref="EELFDebug" /> |
| 218 | <includeCallerData>true</includeCallerData> |
| 219 | </appender> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 220 | |
| 221 | |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 222 | <!-- ============================================================================ --> |
| 223 | <!-- EELF loggers --> |
| 224 | <!-- ============================================================================ --> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 225 | |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 226 | <logger |
| 227 | name="com.att.eelf.audit" |
| 228 | level="info" |
| 229 | additivity="false"> |
| 230 | <appender-ref ref="asyncEELFAudit" /> |
| 231 | </logger> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 232 | |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 233 | <logger |
| 234 | name="com.att.eelf.metrics" |
| 235 | level="info" |
| 236 | additivity="false"> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 237 | <appender-ref ref="asyncEELFMetrics" /> |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 238 | </logger> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 239 | |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 240 | <logger |
| 241 | name="com.att.eelf.error" |
| 242 | level="error" |
| 243 | additivity="false"> |
| 244 | <appender-ref ref="asyncEELFError" /> |
| 245 | </logger> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 246 | |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 247 | <!-- <logger name="com.att.eelf.debug" level="info" additivity="false"> --> |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 248 | <logger |
| 249 | name="com.att.eelf.debug" |
| 250 | level="debug" |
| 251 | additivity="false"> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 252 | <appender-ref ref="asyncEELFDebug" /> |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 253 | </logger> |
Jim Hahn | 00747e5 | 2019-08-27 14:13:25 -0400 | [diff] [blame] | 254 | |
| 255 | |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 256 | <!-- <root level="INFO"> --> |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 257 | <root level="DEBUG"> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 258 | <appender-ref ref="asyncEELFDebug" /> |
| 259 | <appender-ref ref="asyncEELFError" /> |
liamfallon | 3073f50 | 2019-12-04 10:24:58 +0000 | [diff] [blame] | 260 | </root> |
Pamela Dragosh | a974aa0 | 2017-02-14 19:31:53 -0500 | [diff] [blame] | 261 | |
| 262 | </configuration> |