Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | policy-management |
| 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 | |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 21 | <configuration scan="true" scanPeriod="30 seconds" debug="false"> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 22 | |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 23 | <property name="logDir" value="logs" /> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 24 | |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 25 | <property name="errorLog" value="error" /> |
| 26 | <property name="metricLog" value="metric" /> |
| 27 | <property name="auditLog" value="audit" /> |
| 28 | <property name="debugLog" value="debug" /> |
| 29 | <property name="networkLog" value="network" /> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 30 | |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 31 | <property name="metricPattern" |
| 32 | value="%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%thread|%X{ServerName}|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}||%X{ProcessKey}|%X{TargetVirtualEntity}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n" /> |
| 33 | <property name="auditPattern" |
| 34 | value="%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%thread|%X{ServerName}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}||%X{ProcessKey}|%X{TargetVirtualEntity}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n" /> |
| 35 | <property name="errorPattern" |
| 36 | value="%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%X{RequestId}|%thread|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{ErrorCategory}|%X{ErrorCode}|%X{ErrorDesciption}|%msg%n" /> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 37 | |
Jorge Hernandez | 8f61e18 | 2017-06-22 17:17:28 -0500 | [diff] [blame] | 38 | <property name="debugPattern" value="[%date|%level|%logger{0}|%thread] %msg%n" /> |
| 39 | <property name="networkPattern" value="[%d|%t]%m%n" /> |
| 40 | |
| 41 | <appender name="AuditOut" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 42 | <file>${logDir}/${auditLog}.log</file> |
| 43 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 44 | <fileNamePattern>${logDir}/${auditLog}.%i.log.zip</fileNamePattern> |
| 45 | <minIndex>1</minIndex> |
| 46 | <maxIndex>9</maxIndex> |
| 47 | </rollingPolicy> |
| 48 | <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 49 | <maxFileSize>5MB</maxFileSize> |
| 50 | </triggeringPolicy> |
| 51 | <encoder> |
| 52 | <pattern>${auditPattern}</pattern> |
| 53 | </encoder> |
| 54 | </appender> |
| 55 | |
| 56 | <appender name="AsyncAuditOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 57 | <appender-ref ref="AuditOut" /> |
| 58 | </appender> |
| 59 | |
| 60 | <appender name="MetricOut" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 61 | <file>${logDir}/${metricLog}.log</file> |
| 62 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 63 | <fileNamePattern>${logDir}/${metricLog}.%i.log.zip</fileNamePattern> |
| 64 | <minIndex>1</minIndex> |
| 65 | <maxIndex>9</maxIndex> |
| 66 | </rollingPolicy> |
| 67 | <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 68 | <maxFileSize>5MB</maxFileSize> |
| 69 | </triggeringPolicy> |
| 70 | <encoder> |
| 71 | <pattern>${metricPattern}</pattern> |
| 72 | </encoder> |
| 73 | </appender> |
| 74 | |
| 75 | <appender name="AsyncMetricOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 76 | <appender-ref ref="MetricOut" /> |
| 77 | </appender> |
| 78 | |
| 79 | <appender name="ErrorOut" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 80 | <file>${logDir}/${errorLog}.log</file> |
| 81 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 82 | <fileNamePattern>${logDir}/${errorLog}.%i.log.zip</fileNamePattern> |
| 83 | <minIndex>1</minIndex> |
| 84 | <maxIndex>9</maxIndex> |
| 85 | </rollingPolicy> |
| 86 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 87 | <level>WARN</level> |
| 88 | </filter> |
| 89 | <triggeringPolicy |
| 90 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 91 | <maxFileSize>15MB</maxFileSize> |
| 92 | </triggeringPolicy> |
| 93 | <encoder> |
| 94 | <pattern>${errorPattern}</pattern> |
| 95 | </encoder> |
| 96 | </appender> |
| 97 | |
| 98 | <appender name="AsyncErrorOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 99 | <appender-ref ref="ErrorOut" /> |
| 100 | </appender> |
| 101 | |
| 102 | <appender name="DebugOut" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 103 | <file>${logDir}/${debugLog}.log</file> |
| 104 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 105 | <fileNamePattern>${logDir}/${debugLog}.%i.log.zip</fileNamePattern> |
| 106 | <minIndex>1</minIndex> |
| 107 | <maxIndex>9</maxIndex> |
| 108 | </rollingPolicy> |
| 109 | <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 110 | <maxFileSize>20MB</maxFileSize> |
| 111 | </triggeringPolicy> |
| 112 | <encoder> |
| 113 | <pattern>${debugPattern}</pattern> |
| 114 | </encoder> |
| 115 | </appender> |
| 116 | |
| 117 | <appender name="AsyncDebugOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 118 | <appender-ref ref="DebugOut" /> |
| 119 | </appender> |
| 120 | |
| 121 | <appender name="NetworkOut" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 122 | <file>${logDir}/${networkLog}.log</file> |
| 123 | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 124 | <fileNamePattern>logs/network.log.%i.zip</fileNamePattern> |
| 125 | <minIndex>1</minIndex> |
| 126 | <maxIndex>9</maxIndex> |
| 127 | </rollingPolicy> |
| 128 | <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 129 | <maxFileSize>15MB</maxFileSize> |
| 130 | </triggeringPolicy> |
| 131 | <encoder> |
| 132 | <pattern>${networkPattern}</pattern> |
| 133 | </encoder> |
| 134 | </appender> |
| 135 | |
| 136 | <appender name="AsyncNetworkOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 137 | <appender-ref ref="NetworkOut" /> |
| 138 | </appender> |
| 139 | |
| 140 | <logger name="com.att.eelf.audit" level="INFO"> |
| 141 | <appender-ref ref="AsyncAuditOut" /> |
| 142 | </logger> |
| 143 | |
| 144 | <logger name="com.att.eelf.metrics" level="INFO"> |
| 145 | <appender-ref ref="AsyncMetricOut" /> |
| 146 | </logger> |
| 147 | |
| 148 | <logger name="network" level="INFO" additivity="false"> |
| 149 | <appender-ref ref="AsyncNetworkOut" /> |
| 150 | </logger> |
| 151 | |
| 152 | <root level="INFO"> |
| 153 | <appender-ref ref="AsyncDebugOut" /> |
| 154 | <appender-ref ref="AsyncErrorOut" /> |
| 155 | </root> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 156 | |
| 157 | </configuration> |