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