blob: 432c7fdcac07e32172bc2f53e2ea1079d0de4ae0 [file] [log] [blame]
Mike Elliottd32d36e2018-02-12 15:54:03 -05001<configuration scan="false" debug="true">
2 <!--<jmxConfigurator /> -->
3 <!-- directory path for all other type logs -->
4 <property name="logDir" value="/var/log/onap" />
guillaume.lambert30ec3902021-09-14 12:32:24 +02005
Mike Elliottd32d36e2018-02-12 15:54:03 -05006 <!-- directory path for debugging type logs -->
7 <property name="debugDir" value="/var/log/onap" />
guillaume.lambert30ec3902021-09-14 12:32:24 +02008
9 <!-- specify the component name
Mike Elliottd32d36e2018-02-12 15:54:03 -050010 <ECOMP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" -->
11 <property name="componentName" value="MSO"></property>
12 <property name="subComponentName" value="SDNCAdapter"></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
guillaume.lambert30ec3902021-09-14 12:32:24 +020031 <!-- The EELFAppender is used to record events to the general application
Mike Elliottd32d36e2018-02-12 15:54:03 -050032 log -->
guillaume.lambert30ec3902021-09-14 12:32:24 +020033
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
Mike Elliottd32d36e2018-02-12 15:54:03 -050038 these events as part of the application root log. -->
guillaume.lambert30ec3902021-09-14 12:32:24 +020039
Mike Elliottd32d36e2018-02-12 15:54:03 -050040 <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>
guillaume.lambert30ec3902021-09-14 12:32:24 +020066 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
Mike Elliottd32d36e2018-02-12 15:54:03 -050067 %msg%n"</pattern> -->
68 <pattern>${metricPattern}</pattern>
69 </encoder>
70 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +020071
72
Mike Elliottd32d36e2018-02-12 15:54:03 -050073 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
74 <queueSize>256</queueSize>
75 <appender-ref ref="EELFMetrics"/>
76 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +020077
Mike Elliottd32d36e2018-02-12 15:54:03 -050078 <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>
guillaume.lambert30ec3902021-09-14 12:32:24 +020093
Mike Elliottd32d36e2018-02-12 15:54:03 -050094 <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
95 <queueSize>256</queueSize>
96 <appender-ref ref="EELFError"/>
97 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +020098
Mike Elliottd32d36e2018-02-12 15:54:03 -050099 <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>
guillaume.lambert30ec3902021-09-14 12:32:24 +0200111
Mike Elliottd32d36e2018-02-12 15:54:03 -0500112 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
113 <queueSize>256</queueSize>
114 <appender-ref ref="EELFDebug" />
115 <includeCallerData>true</includeCallerData>
116 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +0200117
118
Mike Elliottd32d36e2018-02-12 15:54:03 -0500119 <!-- ============================================================================ -->
120 <!-- EELF loggers -->
121 <!-- ============================================================================ -->
122
123 <logger name="com.att.eelf.audit" level="info" additivity="false">
124 <appender-ref ref="asyncEELFAudit" />
125 </logger>
guillaume.lambert30ec3902021-09-14 12:32:24 +0200126
Mike Elliottd32d36e2018-02-12 15:54:03 -0500127 <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" />
guillaume.lambert30ec3902021-09-14 12:32:24 +0200133 </logger>
Mike Elliottd32d36e2018-02-12 15:54:03 -0500134 <root level="INFO">
135 <appender-ref ref="asyncEELFDebug" />
136 </root>
137
138</configuration>