blob: 3243f1dd260d40d755d602c4a3fdb2adef4fb0b8 [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="TenantAdapter"></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}" />
guillaume.lambert30ec3902021-09-14 12:32:24 +020026
Mike Elliottd32d36e2018-02-12 15:54:03 -050027
28 <!-- ============================================================================ -->
29 <!-- EELF Appenders -->
30 <!-- ============================================================================ -->
31
guillaume.lambert30ec3902021-09-14 12:32:24 +020032 <!-- The EELFAppender is used to record events to the general application 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
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} - %msg%n"</pattern> -->
Mike Elliottd32d36e2018-02-12 15:54:03 -050067 <pattern>${metricPattern}</pattern>
68 </encoder>
69 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +020070
71
Mike Elliottd32d36e2018-02-12 15:54:03 -050072 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
73 <queueSize>256</queueSize>
74 <appender-ref ref="EELFMetrics"/>
75 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +020076
Mike Elliottd32d36e2018-02-12 15:54:03 -050077 <appender name="EELFError"
78 class="ch.qos.logback.core.rolling.RollingFileAppender">
79 <file>${logDirectory}/${errorLogName}${jboss.server.name}.log</file>
80 <rollingPolicy
81 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
82 <fileNamePattern>${logDirectory}/${errorLogName}${jboss.server.name}.log.%d</fileNamePattern>
83 <!--<maxHistory>30</maxHistory>-->
84 </rollingPolicy>
85 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
86 <level>INFO</level>
87 </filter>
88 <encoder>
89 <pattern>${errorPattern}</pattern>
90 </encoder>
91 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +020092
Mike Elliottd32d36e2018-02-12 15:54:03 -050093 <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
94 <queueSize>256</queueSize>
95 <appender-ref ref="EELFError"/>
96 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +020097
Mike Elliottd32d36e2018-02-12 15:54:03 -050098 <appender name="EELFDebug"
99 class="ch.qos.logback.core.rolling.RollingFileAppender">
100 <file>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log</file>
101 <rollingPolicy
102 class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
103 <fileNamePattern>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log.%d</fileNamePattern>
104 <!--<maxHistory>30</maxHistory>-->
105 </rollingPolicy>
106 <encoder>
107 <pattern>${debugPattern}</pattern>
108 </encoder>
109 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +0200110
Mike Elliottd32d36e2018-02-12 15:54:03 -0500111 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
112 <queueSize>256</queueSize>
113 <appender-ref ref="EELFDebug" />
114 <includeCallerData>true</includeCallerData>
115 </appender>
guillaume.lambert30ec3902021-09-14 12:32:24 +0200116
117
Mike Elliottd32d36e2018-02-12 15:54:03 -0500118 <!-- ============================================================================ -->
119 <!-- EELF loggers -->
120 <!-- ============================================================================ -->
121
122 <logger name="com.att.eelf.audit" level="info" additivity="false">
123 <appender-ref ref="asyncEELFAudit" />
124 </logger>
guillaume.lambert30ec3902021-09-14 12:32:24 +0200125
Mike Elliottd32d36e2018-02-12 15:54:03 -0500126 <logger name="com.att.eelf.metrics" level="info" additivity="false">
127 <appender-ref ref="asyncEELFMetrics" />
128 </logger>
129
130 <logger name="com.att.eelf.error" level="debug" additivity="false">
131 <appender-ref ref="asyncEELFError" />
guillaume.lambert30ec3902021-09-14 12:32:24 +0200132 </logger>
Mike Elliottd32d36e2018-02-12 15:54:03 -0500133 <root level="INFO">
134 <appender-ref ref="asyncEELFDebug" />
135 </root>
136
137</configuration>