blob: 1c8880975af18fdebf6c17f90c097cce178f5d89 [file] [log] [blame]
Pamela Dragosha974aa02017-02-14 19:31:53 -05001<!--
2 ============LICENSE_START=======================================================
3 Integrity Monitor
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="true" scanPeriod="3 seconds" debug="true">
22 <!--<jmxConfigurator /> -->
23 <!-- directory path for all other type logs -->
24 <property name="logDir" value="logs" />
25
26 <!-- directory path for debugging type logs -->
27 <property name="debugDir" value="logs" />
28
29 <!-- specify the component name
30 <ECOMP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" -->
31 <property name="componentName" value="common-modules"></property>
32 <property name="subComponentName" value="integrity-monitor"></property>
33
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="defaultPattern" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}|%X{requestId}|%X{serviceInstanceId}|%t|%X{serverName}|%X{serviceName}|%X{instanceUuid}|%p|%X{severity}|%X{serverIpAddress}|%X{server}|%X{clientIpAddress}|%c||%msg%n" />
41 <!-- <property name="defaultPattern" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}|%X{RequestId}|%X{ServiceInstanceId}|%thread||%X{ServiceName}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{RemoteHost}||%X{Timer}|%msg%n" /> -->
42 <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" />
43 <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" />
44 <!--
45 <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" />
46 <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" />
47 -->
48 <!-- example from old log4j.properties: ${catalina.base}/logs/pdp-rest.log -->
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
64
65
66 <!-- EELF Audit Appender. This appender is used to record audit engine
67 related logging events. The audit logger and appender are specializations
68 of the EELF application root logger and appender. This can be used to segregate
69 Policy engine events from other components, or it can be eliminated to record
70 these events as part of the application root log. -->
71
72 <appender name="EELFAudit"
73 class="ch.qos.logback.core.rolling.RollingFileAppender">
74 <file>${logDirectory}/${auditLogName}.log</file>
75 <rollingPolicy
76 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
77 <fileNamePattern>${logDirectory}/${auditLogName}.%i.log.zip
78 </fileNamePattern>
79 <minIndex>1</minIndex>
80 <maxIndex>9</maxIndex>
81 </rollingPolicy>
82 <triggeringPolicy
83 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
84 <maxFileSize>5MB</maxFileSize>
85 </triggeringPolicy>
86 <encoder>
87 <pattern>${defaultPattern}</pattern>
88 </encoder>
89 </appender>
90 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
91 <queueSize>256</queueSize>
92 <appender-ref ref="EELFAudit" />
93 </appender>
94
95<appender name="EELFMetrics"
96 class="ch.qos.logback.core.rolling.RollingFileAppender">
97 <file>${logDirectory}/${metricsLogName}.log</file>
98 <rollingPolicy
99 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
100 <fileNamePattern>${logDirectory}/${metricsLogName}.%i.log.zip
101 </fileNamePattern>
102 <minIndex>1</minIndex>
103 <maxIndex>9</maxIndex>
104 </rollingPolicy>
105 <triggeringPolicy
106 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
107 <maxFileSize>5MB</maxFileSize>
108 </triggeringPolicy>
109 <encoder>
110 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
111 %msg%n"</pattern> -->
112 <pattern>${defaultPattern}</pattern>
113 </encoder>
114 </appender>
115
116
117 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
118 <queueSize>256</queueSize>
119 <appender-ref ref="EELFMetrics"/>
120 </appender>
121
122 <appender name="EELFError"
123 class="ch.qos.logback.core.rolling.RollingFileAppender">
124 <file>${logDirectory}/${errorLogName}.log</file>
125 <rollingPolicy
126 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
127 <fileNamePattern>${logDirectory}/${errorLogName}.%i.log.zip
128 </fileNamePattern>
129 <minIndex>1</minIndex>
130 <maxIndex>9</maxIndex>
131 </rollingPolicy>
132 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
133 <level>ERROR</level>
134 </filter>
135 <triggeringPolicy
136 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
137 <maxFileSize>5MB</maxFileSize>
138 </triggeringPolicy>
139 <encoder>
140 <pattern>${defaultPattern}</pattern>
141 </encoder>
142 </appender>
143
144 <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
145 <queueSize>256</queueSize>
146 <appender-ref ref="EELFError"/>
147 </appender>
148
149 <appender name="EELFDebug"
150 class="ch.qos.logback.core.rolling.RollingFileAppender">
151 <file>${debugLogDirectory}/${debugLogName}.log</file>
152 <rollingPolicy
153 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
154 <fileNamePattern>${debugLogDirectory}/${debugLogName}.%i.log.zip
155 </fileNamePattern>
156 <minIndex>1</minIndex>
157 <maxIndex>9</maxIndex>
158 </rollingPolicy>
159 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
160 <level>INFO</level>
161 </filter>
162 <triggeringPolicy
163 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
164 <maxFileSize>5MB</maxFileSize>
165 </triggeringPolicy>
166 <encoder>
167 <pattern>${defaultPattern}</pattern>
168 </encoder>
169 </appender>
170
171 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
172 <queueSize>256</queueSize>
173 <appender-ref ref="EELFDebug" />
174 <includeCallerData>true</includeCallerData>
175 </appender>
176
177
178 <!-- ============================================================================ -->
179 <!-- EELF loggers -->
180 <!-- ============================================================================ -->
181
182 <logger name="com.att.eelf.audit" level="info" additivity="false">
183 <appender-ref ref="asyncEELFAudit" />
184 </logger>
185
186 <logger name="com.att.eelf.metrics" level="info" additivity="false">
187 <appender-ref ref="asyncEELFMetrics" />
188 </logger>
189
190 <logger name="com.att.eelf.error" level="error" additivity="false">
191 <appender-ref ref="asyncEELFError" />
192 </logger>
193
194 <logger name="com.att.eelf.debug" level="info" additivity="false">
195 <appender-ref ref="asyncEELFDebug" />
196 </logger>
197
198
199 <!-- <root level="INFO"> -->
200 <root level="INFO">
201 <appender-ref ref="asyncEELFDebug" />
202 <appender-ref ref="asyncEELFError" />
203 </root>
204
205</configuration>