jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
| 2 | <configuration scan="true" scanPeriod="3 seconds" debug="true">
|
| 3 | <!-- specify the component name -->
|
| 4 | <property name="componentName" value="vid"></property>
|
| 5 |
|
| 6 | <!-- specify the base path of the log directory -->
|
| 7 | <property name="logDirPrefix" value="${VID_LOG_DIR}"></property>
|
| 8 |
|
| 9 | <!-- The directories where logs are written -->
|
| 10 | <property name="logDirectory" value="${logDirPrefix}/${componentName}" />
|
| 11 | <!-- Can easily relocate debug logs by modifying this path. -->
|
| 12 | <property name="debugLogDirectory" value="${logDirPrefix}/${componentName}" />
|
| 13 |
|
| 14 | <!-- log file names -->
|
| 15 | <property name="generalLogName" value="application" />
|
| 16 | <property name="errorLogName" value="error" />
|
| 17 | <property name="metricsLogName" value="metrics" />
|
| 18 | <property name="auditLogName" value="audit" />
|
| 19 | <property name="debugLogName" value="debug" />
|
| 20 | <!--
|
| 21 | These loggers are not used in code (yet).
|
| 22 | <property name="securityLogName" value="security" />
|
| 23 | <property name="policyLogName" value="policy" />
|
| 24 | <property name="performanceLogName" value="performance" />
|
| 25 | <property name="serverLogName" value="server" />
|
| 26 | -->
|
| 27 |
|
| 28 | <property name="defaultPattern" value="%date{ISO8601}|%X{RequestId}|%X{ServiceInstanceId}|%thread|%X{VirtualServerName}|%X{ServiceName}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Timer}| %msg%n" />
|
| 29 | <property name="debugLoggerPattern" value="%date{ISO8601}|%X{RequestId}|%X{ServiceInstanceId}|%thread|%X{VirtualServerName}|%X{ServiceName}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Timer}| %msg%n" />
|
| 30 | <!-- <property name="debugLoggerPattern" value="%date{ISO8601}|%X{RequestId}|%X{ServiceInstanceId}|%thread|%X{ServiceName}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{RemoteHost}|%X{Timer}|[%caller{3}]|%msg%n" />-->
|
| 31 |
|
| 32 | <!-- Example evaluator filter applied against console appender -->
|
| 33 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
| 34 | <encoder>
|
| 35 | <pattern>${defaultPattern}</pattern>
|
| 36 | </encoder>
|
| 37 | </appender>
|
| 38 |
|
| 39 | <!-- ============================================================================ -->
|
| 40 | <!-- EELF Appenders -->
|
| 41 | <!-- ============================================================================ -->
|
| 42 |
|
| 43 | <!-- The EELFAppender is used to record events to the general application
|
| 44 | log -->
|
| 45 |
|
| 46 |
|
| 47 | <appender name="EELF"
|
| 48 | class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 49 | <file>${logDirectory}/${generalLogName}.log</file>
|
| 50 | <rollingPolicy
|
| 51 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
| 52 | <fileNamePattern>${logDirectory}/${generalLogName}.%i.log.zip
|
| 53 | </fileNamePattern>
|
| 54 | <minIndex>1</minIndex>
|
| 55 | <maxIndex>9</maxIndex>
|
| 56 | </rollingPolicy>
|
| 57 | <triggeringPolicy
|
| 58 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
| 59 | <maxFileSize>5MB</maxFileSize>
|
| 60 | </triggeringPolicy>
|
| 61 | <encoder>
|
| 62 | <pattern>${defaultPattern}</pattern>
|
| 63 | </encoder>
|
| 64 | <filter class="org.openecomp.portalapp.util.CustomLoggingFilter" />
|
| 65 | </appender>
|
| 66 |
|
| 67 | <appender name="asyncEELF" class="ch.qos.logback.classic.AsyncAppender">
|
| 68 | <queueSize>256</queueSize>
|
| 69 | <appender-ref ref="EELF" />
|
| 70 | </appender>
|
| 71 |
|
| 72 | <!-- EELF Security Appender. This appender is used to record security events
|
| 73 | to the security log file. Security events are separate from other loggers
|
| 74 | in EELF so that security log records can be captured and managed in a secure
|
| 75 | way separate from the other logs. This appender is set to never discard any
|
| 76 | events. -->
|
| 77 | <!--
|
| 78 | <appender name="EELFSecurity"
|
| 79 | class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 80 | <file>${logDirectory}/${securityLogName}.log</file>
|
| 81 | <rollingPolicy
|
| 82 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
| 83 | <fileNamePattern>${logDirectory}/${securityLogName}.%i.log.zip
|
| 84 | </fileNamePattern>
|
| 85 | <minIndex>1</minIndex>
|
| 86 | <maxIndex>9</maxIndex>
|
| 87 | </rollingPolicy>
|
| 88 | <triggeringPolicy
|
| 89 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
| 90 | <maxFileSize>5MB</maxFileSize>
|
| 91 | </triggeringPolicy>
|
| 92 | <encoder>
|
| 93 | <pattern>${defaultPattern}</pattern>
|
| 94 | </encoder>
|
| 95 | </appender>
|
| 96 |
|
| 97 | <appender name="asyncEELFSecurity" class="ch.qos.logback.classic.AsyncAppender">
|
| 98 | <queueSize>256</queueSize>
|
| 99 | <discardingThreshold>0</discardingThreshold>
|
| 100 | <appender-ref ref="EELFSecurity" />
|
| 101 | </appender>
|
| 102 | -->
|
| 103 |
|
| 104 | <!-- EELF Performance Appender. This appender is used to record performance
|
| 105 | records. -->
|
| 106 | <!--
|
| 107 | <appender name="EELFPerformance"
|
| 108 | class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 109 | <file>${logDirectory}/${performanceLogName}.log</file>
|
| 110 | <rollingPolicy
|
| 111 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
| 112 | <fileNamePattern>${logDirectory}/${performanceLogName}.%i.log.zip
|
| 113 | </fileNamePattern>
|
| 114 | <minIndex>1</minIndex>
|
| 115 | <maxIndex>9</maxIndex>
|
| 116 | </rollingPolicy>
|
| 117 | <triggeringPolicy
|
| 118 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
| 119 | <maxFileSize>5MB</maxFileSize>
|
| 120 | </triggeringPolicy>
|
| 121 | <encoder>
|
| 122 | <outputPatternAsHeader>true</outputPatternAsHeader>
|
| 123 | <pattern>${defaultPattern}</pattern>
|
| 124 | </encoder>
|
| 125 | </appender>
|
| 126 | <appender name="asyncEELFPerformance" class="ch.qos.logback.classic.AsyncAppender">
|
| 127 | <queueSize>256</queueSize>
|
| 128 | <appender-ref ref="EELFPerformance" />
|
| 129 | </appender>
|
| 130 | -->
|
| 131 |
|
| 132 | <!-- EELF Server Appender. This appender is used to record Server related
|
| 133 | logging events. The Server logger and appender are specializations of the
|
| 134 | EELF application root logger and appender. This can be used to segregate Server
|
| 135 | events from other components, or it can be eliminated to record these events
|
| 136 | as part of the application root log. -->
|
| 137 | <!--
|
| 138 | <appender name="EELFServer"
|
| 139 | class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 140 | <file>${logDirectory}/${serverLogName}.log</file>
|
| 141 | <rollingPolicy
|
| 142 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
| 143 | <fileNamePattern>${logDirectory}/${serverLogName}.%i.log.zip
|
| 144 | </fileNamePattern>
|
| 145 | <minIndex>1</minIndex>
|
| 146 | <maxIndex>9</maxIndex>
|
| 147 | </rollingPolicy>
|
| 148 | <triggeringPolicy
|
| 149 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
| 150 | <maxFileSize>5MB</maxFileSize>
|
| 151 | </triggeringPolicy>
|
| 152 | <encoder>
|
| 153 | <pattern>${defaultPattern}</pattern>
|
| 154 | </encoder>
|
| 155 | </appender>
|
| 156 | <appender name="asyncEELFServer" class="ch.qos.logback.classic.AsyncAppender">
|
| 157 | <queueSize>256</queueSize>
|
| 158 | <appender-ref ref="EELFServer" />
|
| 159 | </appender>
|
| 160 | -->
|
| 161 |
|
| 162 | <!-- EELF Policy Appender. This appender is used to record Policy engine
|
| 163 | related logging events. The Policy logger and appender are specializations
|
| 164 | of the EELF application root logger and appender. This can be used to segregate
|
| 165 | Policy engine events from other components, or it can be eliminated to record
|
| 166 | these events as part of the application root log. -->
|
| 167 | <!--
|
| 168 | <appender name="EELFPolicy"
|
| 169 | class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 170 | <file>${logDirectory}/${policyLogName}.log</file>
|
| 171 | <rollingPolicy
|
| 172 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
| 173 | <fileNamePattern>${logDirectory}/${policyLogName}.%i.log.zip
|
| 174 | </fileNamePattern>
|
| 175 | <minIndex>1</minIndex>
|
| 176 | <maxIndex>9</maxIndex>
|
| 177 | </rollingPolicy>
|
| 178 | <triggeringPolicy
|
| 179 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
| 180 | <maxFileSize>5MB</maxFileSize>
|
| 181 | </triggeringPolicy>
|
| 182 | <encoder>
|
| 183 | <pattern>${defaultPattern}</pattern>
|
| 184 | </encoder>
|
| 185 | </appender>
|
| 186 | <appender name="asyncEELFPolicy" class="ch.qos.logback.classic.AsyncAppender">
|
| 187 | <queueSize>256</queueSize>
|
| 188 | <appender-ref ref="EELFPolicy" />
|
| 189 | </appender>
|
| 190 | -->
|
| 191 |
|
| 192 | <!-- EELF Audit Appender. This appender is used to record audit engine
|
| 193 | related logging events. The audit logger and appender are specializations
|
| 194 | of the EELF application root logger and appender. This can be used to segregate
|
| 195 | Policy engine events from other components, or it can be eliminated to record
|
| 196 | these events as part of the application root log. -->
|
| 197 |
|
| 198 | <appender name="EELFAudit"
|
| 199 | class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 200 | <file>${logDirectory}/${auditLogName}.log</file>
|
| 201 | <rollingPolicy
|
| 202 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
| 203 | <fileNamePattern>${logDirectory}/${auditLogName}.%i.log.zip
|
| 204 | </fileNamePattern>
|
| 205 | <minIndex>1</minIndex>
|
| 206 | <maxIndex>9</maxIndex>
|
| 207 | </rollingPolicy>
|
| 208 | <triggeringPolicy
|
| 209 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
| 210 | <maxFileSize>5MB</maxFileSize>
|
| 211 | </triggeringPolicy>
|
| 212 | <encoder>
|
| 213 | <pattern>${defaultPattern}</pattern>
|
| 214 | </encoder>
|
| 215 | </appender>
|
| 216 | <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
|
| 217 | <queueSize>256</queueSize>
|
| 218 | <appender-ref ref="EELFAudit" />
|
| 219 | </appender>
|
| 220 |
|
| 221 | <appender name="EELFMetrics"
|
| 222 | class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 223 | <file>${logDirectory}/${metricsLogName}.log</file>
|
| 224 | <rollingPolicy
|
| 225 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
| 226 | <fileNamePattern>${logDirectory}/${metricsLogName}.%i.log.zip
|
| 227 | </fileNamePattern>
|
| 228 | <minIndex>1</minIndex>
|
| 229 | <maxIndex>9</maxIndex>
|
| 230 | </rollingPolicy>
|
| 231 | <triggeringPolicy
|
| 232 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
| 233 | <maxFileSize>5MB</maxFileSize>
|
| 234 | </triggeringPolicy>
|
| 235 | <encoder>
|
| 236 | <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
|
| 237 | %msg%n"</pattern> -->
|
| 238 | <pattern>${defaultPattern}</pattern>
|
| 239 | </encoder>
|
| 240 | </appender>
|
| 241 |
|
| 242 |
|
| 243 | <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
|
| 244 | <queueSize>256</queueSize>
|
| 245 | <appender-ref ref="EELFMetrics"/>
|
| 246 | </appender>
|
| 247 |
|
| 248 | <appender name="EELFError"
|
| 249 | class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 250 | <file>${logDirectory}/${errorLogName}.log</file>
|
| 251 | <rollingPolicy
|
| 252 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
| 253 | <fileNamePattern>${logDirectory}/${errorLogName}.%i.log.zip
|
| 254 | </fileNamePattern>
|
| 255 | <minIndex>1</minIndex>
|
| 256 | <maxIndex>9</maxIndex>
|
| 257 | </rollingPolicy>
|
| 258 | <triggeringPolicy
|
| 259 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
| 260 | <maxFileSize>5MB</maxFileSize>
|
| 261 | </triggeringPolicy>
|
| 262 | <encoder>
|
| 263 | <pattern>${defaultPattern}</pattern>
|
| 264 | </encoder>
|
| 265 | </appender>
|
| 266 |
|
| 267 | <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
|
| 268 | <queueSize>256</queueSize>
|
| 269 | <appender-ref ref="EELFError"/>
|
| 270 | </appender>
|
| 271 |
|
| 272 | <appender name="EELFDebug"
|
| 273 | class="ch.qos.logback.core.rolling.RollingFileAppender">
|
| 274 | <file>${debugLogDirectory}/${debugLogName}.log</file>
|
| 275 | <rollingPolicy
|
| 276 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
| 277 | <fileNamePattern>${debugLogDirectory}/${debugLogName}.%i.log.zip
|
| 278 | </fileNamePattern>
|
| 279 | <minIndex>1</minIndex>
|
| 280 | <maxIndex>9</maxIndex>
|
| 281 | </rollingPolicy>
|
| 282 | <triggeringPolicy
|
| 283 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
| 284 | <maxFileSize>5MB</maxFileSize>
|
| 285 | </triggeringPolicy>
|
| 286 | <encoder>
|
| 287 | <pattern>${debugLoggerPattern}</pattern>
|
| 288 | </encoder>
|
| 289 | </appender>
|
| 290 |
|
| 291 | <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
|
| 292 | <queueSize>256</queueSize>
|
| 293 | <appender-ref ref="EELFDebug" />
|
| 294 | <includeCallerData>true</includeCallerData>
|
| 295 | </appender>
|
| 296 |
|
| 297 |
|
| 298 | <!-- ============================================================================ -->
|
| 299 | <!-- EELF loggers -->
|
| 300 | <!-- ============================================================================ -->
|
| 301 | <logger name="com.att.eelf" level="debug" additivity="false">
|
| 302 | <appender-ref ref="asyncEELF" />
|
| 303 | </logger>
|
| 304 |
|
| 305 | <!--
|
| 306 | <logger name="com.att.eelf.security" level="info" additivity="false">
|
| 307 | <appender-ref ref="asyncEELFSecurity" />
|
| 308 | </logger>
|
| 309 | <logger name="com.att.eelf.perf" level="info" additivity="false">
|
| 310 | <appender-ref ref="asyncEELFPerformance" />
|
| 311 | </logger>
|
| 312 | <logger name="com.att.eelf.server" level="info" additivity="false">
|
| 313 | <appender-ref ref="asyncEELFServer" />
|
| 314 | </logger>
|
| 315 | <logger name="com.att.eelf.policy" level="info" additivity="false">
|
| 316 | <appender-ref ref="asyncEELFPolicy" />
|
| 317 | </logger>
|
| 318 | -->
|
| 319 |
|
| 320 | <logger name="com.att.eelf.audit" level="info" additivity="false">
|
| 321 | <appender-ref ref="asyncEELFAudit" />
|
| 322 | </logger>
|
| 323 |
|
| 324 | <logger name="com.att.eelf.metrics" level="info" additivity="false">
|
| 325 | <appender-ref ref="asyncEELFMetrics" />
|
| 326 | </logger>
|
| 327 |
|
| 328 | <logger name="com.att.eelf.error" level="info" additivity="false">
|
| 329 | <appender-ref ref="asyncEELFError" />
|
| 330 | </logger>
|
| 331 |
|
| 332 | <logger name="com.att.eelf.debug" level="debug" additivity="false">
|
| 333 | <appender-ref ref="asyncEELFDebug" />
|
| 334 | </logger>
|
| 335 |
|
| 336 |
|
| 337 | <root level="${VID_LOG_LEVEL}">
|
| 338 | <appender-ref ref="asyncEELF" />
|
| 339 | </root>
|
| 340 |
|
| 341 | </configuration>
|