blob: 133fa5400325302039bb2cd2308353e9d43176e7 [file] [log] [blame]
ChrisC025301d2017-01-31 11:40:03 +01001<!--
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="true" scanPeriod="3 seconds" debug="true">
22 <!--<jmxConfigurator /> -->
23 <!-- directory path for all other type logs -->
24 <property name="logDir" value="/var/log/ecomp" />
25
26 <!-- directory path for debugging type logs -->
27 <property name="debugDir" value="/var/log/ecomp" />
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="BPMN"></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{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, 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{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, 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 <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" />
45 <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" />
46
47
48 <!-- ============================================================================ -->
49 <!-- EELF Appenders -->
50 <!-- ============================================================================ -->
51
52 <!-- The EELFAppender is used to record events to the general application
53 log -->
54
55 <!-- EELF Audit Appender. This appender is used to record audit engine
56 related logging events. The audit logger and appender are specializations
57 of the EELF application root logger and appender. This can be used to segregate
58 Policy engine events from other components, or it can be eliminated to record
59 these events as part of the application root log. -->
60
61 <appender name="EELFAudit"
62 class="ch.qos.logback.core.rolling.RollingFileAppender">
63 <file>${logDirectory}/${auditLogName}${jboss.server.name}.log</file>
64 <rollingPolicy
65 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
66 <fileNamePattern>${logDirectory}/${auditLogName}${jboss.server.name}.log.%d</fileNamePattern>
67 <!--<maxHistory>30</maxHistory>-->
68 </rollingPolicy>
69 <encoder>
70 <pattern>${auditPattern}</pattern>
71 </encoder>
72 </appender>
73 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
74 <queueSize>256</queueSize>
75 <appender-ref ref="EELFAudit" />
76 </appender>
77
78 <appender name="EELFMetrics"
79 class="ch.qos.logback.core.rolling.RollingFileAppender">
80 <file>${logDirectory}/${metricsLogName}${jboss.server.name}.log</file>
81 <rollingPolicy
82 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
83 <fileNamePattern>${logDirectory}/${metricsLogName}${jboss.server.name}.log.%d</fileNamePattern>
84 <!--<maxHistory>30</maxHistory>-->
85 </rollingPolicy>
86 <encoder>
87 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
88 %msg%n"</pattern> -->
89 <pattern>${metricPattern}</pattern>
90 </encoder>
91 </appender>
92
93
94 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
95 <queueSize>256</queueSize>
96 <appender-ref ref="EELFMetrics"/>
97 </appender>
98
99 <appender name="EELFError"
100 class="ch.qos.logback.core.rolling.RollingFileAppender">
101 <file>${logDirectory}/${errorLogName}${jboss.server.name}.log</file>
102 <rollingPolicy
103 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
104 <fileNamePattern>${logDirectory}/${errorLogName}${jboss.server.name}.log.%d</fileNamePattern>
105 <!--<maxHistory>30</maxHistory>-->
106 </rollingPolicy>
107 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
108 <level>INFO</level>
109 </filter>
110 <encoder>
111 <pattern>${errorPattern}</pattern>
112 </encoder>
113 </appender>
114
115 <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
116 <queueSize>256</queueSize>
117 <appender-ref ref="EELFError"/>
118 </appender>
119
120 <appender name="EELFDebug"
121 class="ch.qos.logback.core.rolling.RollingFileAppender">
122 <file>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log</file>
123 <rollingPolicy
124 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
125 <fileNamePattern>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log.%d</fileNamePattern>
126 <!--<maxHistory>30</maxHistory>-->
127 </rollingPolicy>
128 <encoder>
129 <pattern>${debugPattern}</pattern>
130 </encoder>
131 </appender>
132
133 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
134 <queueSize>256</queueSize>
135 <appender-ref ref="EELFDebug" />
136 <includeCallerData>true</includeCallerData>
137 </appender>
138
139
140 <!-- ============================================================================ -->
141 <!-- EELF loggers -->
142 <!-- ============================================================================ -->
143
144 <logger name="com.att.eelf.audit" level="info" additivity="false">
145 <appender-ref ref="asyncEELFAudit" />
146 </logger>
147
148 <logger name="com.att.eelf.metrics" level="info" additivity="false">
149 <appender-ref ref="asyncEELFMetrics" />
150 </logger>
151
152 <logger name="com.att.eelf.error" level="debug" additivity="false">
153 <appender-ref ref="asyncEELFError" />
154 </logger>
155 <root level="INFO">
156 <appender-ref ref="asyncEELFDebug" />
157 </root>
158
159</configuration>