ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ECOMP MSO |
| 4 | ================================================================================ |
| 5 | Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
| 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 |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 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 | <configuration scan="false" debug="true"> |
| 22 | <!--<jmxConfigurator /> --> |
| 23 | <!-- directory path for all other type logs --> |
| 24 | <property name="logDir" value="./target" /> |
| 25 | |
| 26 | <!-- directory path for debugging type logs --> |
| 27 | <property name="debugDir" value="./target" /> |
| 28 | |
| 29 | <!-- specify the component name |
| 30 | <ECOMP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" --> |
| 31 | <property name="componentName" value="MSO"></property> |
| 32 | <property name="subComponentName" value="Test"></property> |
| 33 | <!-- log file names --> |
| 34 | <property name="errorLogName" value="error" /> |
| 35 | <property name="metricsLogName" value="metrics" /> |
| 36 | <property name="auditLogName" value="audit" /> |
| 37 | <property name="debugLogName" value="debug" /> |
| 38 | |
| 39 | <property name="errorPattern" value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", UTC}|%X{RequestId}|%thread|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%.-5level|%X{ErrorCode}|%X{ErrorDesc}|%msg%n" /> |
| 40 | <property name="debugPattern" value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", UTC}|%X{RequestId}|%msg%n" /> |
| 41 | |
| 42 | <property name="auditPattern" value="%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%thread||%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{Timer}|%X{ServerFQDN}|%X{RemoteHost}||||||||%msg%n" /> |
| 43 | <property name="metricPattern" value="%X{BeginTimestamp}|%X{EndTimestamp}|%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{Timer}|%X{ServerFQDN}|%X{RemoteHost}||||%X{TargetVirtualEntity}|||||%msg%n" /> |
| 44 | |
| 45 | <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" /> |
| 46 | <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" /> |
| 47 | |
| 48 | |
| 49 | <!-- Example evaluator filter applied against console appender --> |
| 50 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 51 | <encoder> |
| 52 | <pattern>${defaultPattern}</pattern> |
| 53 | </encoder> |
| 54 | </appender> |
| 55 | |
| 56 | <!-- ============================================================================ --> |
| 57 | <!-- EELF Appenders --> |
| 58 | <!-- ============================================================================ --> |
| 59 | |
| 60 | <!-- The EELFAppender is used to record events to the general application |
| 61 | log --> |
| 62 | |
| 63 | <!-- EELF Audit Appender. This appender is used to record audit engine |
| 64 | related logging events. The audit logger and appender are specializations |
| 65 | of the EELF application root logger and appender. This can be used to segregate |
| 66 | Policy engine events from other components, or it can be eliminated to record |
| 67 | these events as part of the application root log. --> |
| 68 | |
| 69 | <appender name="EELFAudit" |
| 70 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 71 | <file>${logDirectory}/${auditLogName}${jboss.server.name}.log</file> |
| 72 | <rollingPolicy |
| 73 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 74 | <fileNamePattern>${logDirectory}/${auditLogName}${jboss.server.name}.log.%d</fileNamePattern> |
| 75 | <!--<maxHistory>30</maxHistory>--> |
| 76 | </rollingPolicy> |
| 77 | <encoder> |
| 78 | <pattern>${auditPattern}</pattern> |
| 79 | </encoder> |
| 80 | </appender> |
| 81 | <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender"> |
| 82 | <queueSize>500</queueSize> |
| 83 | <discardingThreshold>0</discardingThreshold> |
| 84 | <appender-ref ref="EELFAudit" /> |
| 85 | </appender> |
| 86 | |
| 87 | <appender name="EELFMetrics" |
| 88 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 89 | <file>${logDirectory}/${metricsLogName}${jboss.server.name}.log</file> |
| 90 | <rollingPolicy |
| 91 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 92 | <fileNamePattern>${logDirectory}/${metricsLogName}${jboss.server.name}.log.%d</fileNamePattern> |
| 93 | <!--<maxHistory>30</maxHistory>--> |
| 94 | </rollingPolicy> |
| 95 | <encoder> |
| 96 | <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - |
| 97 | %msg%n"</pattern> --> |
| 98 | <pattern>${metricPattern}</pattern> |
| 99 | </encoder> |
| 100 | </appender> |
| 101 | |
| 102 | |
| 103 | <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender"> |
| 104 | <queueSize>500</queueSize> |
| 105 | <discardingThreshold>0</discardingThreshold> |
| 106 | <appender-ref ref="EELFMetrics"/> |
| 107 | </appender> |
| 108 | |
| 109 | <appender name="EELFError" |
| 110 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 111 | <file>${logDirectory}/${errorLogName}${jboss.server.name}.log</file> |
| 112 | <rollingPolicy |
| 113 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 114 | <fileNamePattern>${logDirectory}/${errorLogName}${jboss.server.name}.log.%d</fileNamePattern> |
| 115 | <!--<maxHistory>30</maxHistory>--> |
| 116 | </rollingPolicy> |
| 117 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 118 | <level>INFO</level> |
| 119 | </filter> |
| 120 | <encoder> |
| 121 | <pattern>${errorPattern}</pattern> |
| 122 | </encoder> |
| 123 | </appender> |
| 124 | |
| 125 | <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender"> |
| 126 | <queueSize>500</queueSize> |
| 127 | <discardingThreshold>0</discardingThreshold> |
| 128 | <appender-ref ref="EELFError"/> |
| 129 | </appender> |
| 130 | |
| 131 | <appender name="EELFDebug" |
| 132 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 133 | <file>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log</file> |
| 134 | <rollingPolicy |
| 135 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 136 | <fileNamePattern>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log.%d</fileNamePattern> |
| 137 | <!--<maxHistory>30</maxHistory>--> |
| 138 | </rollingPolicy> |
| 139 | <encoder> |
| 140 | <pattern>${debugPattern}</pattern> |
| 141 | </encoder> |
| 142 | </appender> |
| 143 | |
| 144 | <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender"> |
| 145 | <queueSize>500</queueSize> |
| 146 | <discardingThreshold>0</discardingThreshold> |
| 147 | <appender-ref ref="EELFDebug" /> |
| 148 | <includeCallerData>true</includeCallerData> |
| 149 | </appender> |
| 150 | |
| 151 | |
| 152 | <!-- ============================================================================ --> |
| 153 | <!-- EELF loggers --> |
| 154 | <!-- ============================================================================ --> |
| 155 | |
| 156 | <logger name="com.att.eelf.audit" level="info" additivity="false"> |
| 157 | <appender-ref ref="asyncEELFAudit" /> |
| 158 | </logger> |
| 159 | |
| 160 | <logger name="com.att.eelf.metrics" level="info" additivity="false"> |
| 161 | <appender-ref ref="asyncEELFMetrics" /> |
| 162 | </logger> |
| 163 | |
| 164 | <logger name="com.att.eelf.error" level="debug" additivity="false"> |
| 165 | <appender-ref ref="asyncEELFError" /> |
| 166 | </logger> |
| 167 | <root level="INFO"> |
| 168 | <appender-ref ref="asyncEELFDebug" /> |
| 169 | </root> |
| 170 | |
| 171 | </configuration> |