blob: 07a6bc6b76da18bf8252eac0197073a9a976278b [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="RequestDB"></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 log -->
32
33 <!-- EELF Audit Appender. This appender is used to record audit engine
34 related logging events. The audit logger and appender are specializations
35 of the EELF application root logger and appender. This can be used to segregate
36 Policy engine events from other components, or it can be eliminated to record
Mike Elliottd32d36e2018-02-12 15:54:03 -050037 these events as part of the application root log. -->
guillaume.lambert30ec3902021-09-14 12:32:24 +020038
Mike Elliottd32d36e2018-02-12 15:54:03 -050039 <appender name="EELFAudit"
40 class="ch.qos.logback.core.rolling.RollingFileAppender">
41 <file>${logDirectory}/${auditLogName}${jboss.server.name}.log</file>
42 <rollingPolicy
43 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
44 <fileNamePattern>${logDirectory}/${auditLogName}${jboss.server.name}.log.%d</fileNamePattern>
45 <!--<maxHistory>30</maxHistory>-->
46 </rollingPolicy>
47 <encoder>
48 <pattern>${auditPattern}</pattern>
49 </encoder>
50 </appender>
51 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
52 <queueSize>256</queueSize>
53 <appender-ref ref="EELFAudit" />
54 </appender>
55
56<appender name="EELFMetrics"
57 class="ch.qos.logback.core.rolling.RollingFileAppender">
58 <file>${logDirectory}/${metricsLogName}${jboss.server.name}.log</file>
59 <rollingPolicy
60 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
61 <fileNamePattern>${logDirectory}/${metricsLogName}${jboss.server.name}.log.%d</fileNamePattern>
62 <!--<maxHistory>30</maxHistory>-->
63 </rollingPolicy>
64 <encoder>
guillaume.lambert30ec3902021-09-14 12:32:24 +020065 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n"</pattern> -->
Mike Elliottd32d36e2018-02-12 15:54:03 -050066 <pattern>${metricPattern}</pattern>
67 </encoder>
68 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +020069
70
Mike Elliottd32d36e2018-02-12 15:54:03 -050071 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
72 <queueSize>256</queueSize>
73 <appender-ref ref="EELFMetrics"/>
74 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +020075
Mike Elliottd32d36e2018-02-12 15:54:03 -050076 <appender name="EELFError"
77 class="ch.qos.logback.core.rolling.RollingFileAppender">
78 <file>${logDirectory}/${errorLogName}${jboss.server.name}.log</file>
79 <rollingPolicy
80 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
81 <fileNamePattern>${logDirectory}/${errorLogName}${jboss.server.name}.log.%d</fileNamePattern>
82 <!--<maxHistory>30</maxHistory>-->
83 </rollingPolicy>
84 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
85 <level>INFO</level>
86 </filter>
87 <encoder>
88 <pattern>${errorPattern}</pattern>
89 </encoder>
90 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +020091
Mike Elliottd32d36e2018-02-12 15:54:03 -050092 <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
93 <queueSize>256</queueSize>
94 <appender-ref ref="EELFError"/>
95 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +020096
Mike Elliottd32d36e2018-02-12 15:54:03 -050097 <appender name="EELFDebug"
98 class="ch.qos.logback.core.rolling.RollingFileAppender">
99 <file>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log</file>
100 <rollingPolicy
101 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
102 <fileNamePattern>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log.%d</fileNamePattern>
103 <!--<maxHistory>30</maxHistory>-->
104 </rollingPolicy>
105 <encoder>
106 <pattern>${debugPattern}</pattern>
107 </encoder>
108 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +0200109
Mike Elliottd32d36e2018-02-12 15:54:03 -0500110 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
111 <queueSize>256</queueSize>
112 <appender-ref ref="EELFDebug" />
113 <includeCallerData>true</includeCallerData>
114 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +0200115
116
Mike Elliottd32d36e2018-02-12 15:54:03 -0500117 <!-- ============================================================================ -->
118 <!-- EELF loggers -->
119 <!-- ============================================================================ -->
120
121 <logger name="com.att.eelf.audit" level="info" additivity="false">
122 <appender-ref ref="asyncEELFAudit" />
123 </logger>
guillaume.lambert30ec3902021-09-14 12:32:24 +0200124
Mike Elliottd32d36e2018-02-12 15:54:03 -0500125 <logger name="com.att.eelf.metrics" level="info" additivity="false">
126 <appender-ref ref="asyncEELFMetrics" />
127 </logger>
128
129 <logger name="com.att.eelf.error" level="debug" additivity="false">
130 <appender-ref ref="asyncEELFError" />
guillaume.lambert30ec3902021-09-14 12:32:24 +0200131 </logger>
Mike Elliottd32d36e2018-02-12 15:54:03 -0500132 <root level="INFO">
133 <appender-ref ref="asyncEELFDebug" />
134 </root>
135
136</configuration>