blob: b4879e017f920fd7fb9f38dad1d0652d2dc4bb13 [file] [log] [blame]
Alexis de Talhouƫt9a3b3f72017-11-27 14:54:47 -05001<configuration scan="false" debug="true">
2 <!--<jmxConfigurator /> -->
3 <!-- directory path for all other type logs -->
4 <property name="logDir" value="/var/log/onap" />
5
6 <!-- directory path for debugging type logs -->
7 <property name="debugDir" value="/var/log/onap" />
8
9 <!-- specify the component name
10 <ECOMP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" -->
11 <property name="componentName" value="MSO"></property>
12 <property name="subComponentName" value="ASDCController"></property>
13 <!-- log file names -->
14 <property name="errorLogName" value="error" />
15 <property name="metricsLogName" value="metrics" />
16 <property name="auditLogName" value="audit" />
17 <property name="debugLogName" value="debug" />
18
19 <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" />
20 <property name="debugPattern" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}|%X{RequestId}|%msg%n" />
21
22 <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" />
23 <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" />
24 <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" />
25 <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" />
26
27 <!-- ============================================================================ -->
28 <!-- EELF Appenders -->
29 <!-- ============================================================================ -->
30
31 <!-- The EELFAppender is used to record events to the general application
32 log -->
33
34 <!-- EELF Audit Appender. This appender is used to record audit engine
35 related logging events. The audit logger and appender are specializations
36 of the EELF application root logger and appender. This can be used to segregate
37 Policy engine events from other components, or it can be eliminated to record
38 these events as part of the application root log. -->
39
40 <appender name="EELFAudit"
41 class="ch.qos.logback.core.rolling.RollingFileAppender">
42 <file>${logDirectory}/${auditLogName}${jboss.server.name}.log</file>
43 <rollingPolicy
44 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
45 <fileNamePattern>${logDirectory}/${auditLogName}${jboss.server.name}.log.%d</fileNamePattern>
46 <!--<maxHistory>30</maxHistory>-->
47 </rollingPolicy>
48 <encoder>
49 <pattern>${auditPattern}</pattern>
50 </encoder>
51 </appender>
52 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
53 <queueSize>256</queueSize>
54 <appender-ref ref="EELFAudit" />
55 </appender>
56
57<appender name="EELFMetrics"
58 class="ch.qos.logback.core.rolling.RollingFileAppender">
59 <file>${logDirectory}/${metricsLogName}${jboss.server.name}.log</file>
60 <rollingPolicy
61 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
62 <fileNamePattern>${logDirectory}/${metricsLogName}${jboss.server.name}.log.%d</fileNamePattern>
63 <!--<maxHistory>30</maxHistory>-->
64 </rollingPolicy>
65 <encoder>
66 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
67 %msg%n"</pattern> -->
68 <pattern>${metricPattern}</pattern>
69 </encoder>
70 </appender>
71
72
73 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
74 <queueSize>256</queueSize>
75 <appender-ref ref="EELFMetrics"/>
76 </appender>
77
78 <appender name="EELFError"
79 class="ch.qos.logback.core.rolling.RollingFileAppender">
80 <file>${logDirectory}/${errorLogName}${jboss.server.name}.log</file>
81 <rollingPolicy
82 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
83 <fileNamePattern>${logDirectory}/${errorLogName}${jboss.server.name}.log.%d</fileNamePattern>
84 <!--<maxHistory>30</maxHistory>-->
85 </rollingPolicy>
86 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
87 <level>INFO</level>
88 </filter>
89 <encoder>
90 <pattern>${errorPattern}</pattern>
91 </encoder>
92 </appender>
93
94 <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
95 <queueSize>256</queueSize>
96 <appender-ref ref="EELFError"/>
97 </appender>
98
99 <appender name="EELFDebug"
100 class="ch.qos.logback.core.rolling.RollingFileAppender">
101 <file>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log</file>
102 <rollingPolicy
103 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
104 <fileNamePattern>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log.%d</fileNamePattern>
105 <!--<maxHistory>30</maxHistory>-->
106 </rollingPolicy>
107 <encoder>
108 <pattern>${debugPattern}</pattern>
109 </encoder>
110 </appender>
111
112 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
113 <queueSize>256</queueSize>
114 <appender-ref ref="EELFDebug" />
115 <includeCallerData>true</includeCallerData>
116 </appender>
117
118
119 <!-- ============================================================================ -->
120 <!-- EELF loggers -->
121 <!-- ============================================================================ -->
122
123 <logger name="com.att.eelf.audit" level="info" additivity="false">
124 <appender-ref ref="asyncEELFAudit" />
125 </logger>
126
127 <logger name="com.att.eelf.metrics" level="info" additivity="false">
128 <appender-ref ref="asyncEELFMetrics" />
129 </logger>
130
131 <logger name="com.att.eelf.error" level="debug" additivity="false">
132 <appender-ref ref="asyncEELFError" />
133 </logger>
134 <root level="INFO">
135 <appender-ref ref="asyncEELFDebug" />
136 </root>
137
138</configuration>