Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 1 | <configuration scan="false" debug="true"> |
| 2 | <!--<jmxConfigurator /> --> |
| 3 | <!-- directory path for all other type logs --> |
| 4 | <property name="logDir" value="/var/log/onap" /> |
guillaume.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 5 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 6 | <!-- directory path for debugging type logs --> |
| 7 | <property name="debugDir" value="/var/log/onap" /> |
guillaume.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 8 | |
| 9 | <!-- specify the component name |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 10 | <ECOMP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" --> |
| 11 | <property name="componentName" value="MSO"></property> |
| 12 | <property name="subComponentName" value="VnfAdapter"></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{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", 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{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", 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.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 31 | <!-- 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 Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 37 | these events as part of the application root log. --> |
guillaume.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 38 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 39 | <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 | |
guillaume.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 56 | <appender name="EELFMetrics" |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 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.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 65 | <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n"</pattern> --> |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 66 | <pattern>${metricPattern}</pattern> |
| 67 | </encoder> |
| 68 | </appender> |
guillaume.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 69 | |
| 70 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 71 | <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender"> |
| 72 | <queueSize>256</queueSize> |
| 73 | <appender-ref ref="EELFMetrics"/> |
| 74 | </appender> |
guillaume.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 75 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 76 | <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.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 91 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 92 | <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender"> |
| 93 | <queueSize>256</queueSize> |
| 94 | <appender-ref ref="EELFError"/> |
| 95 | </appender> |
guillaume.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 96 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 97 | <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.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 109 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 110 | <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.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 115 | |
| 116 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 117 | <!-- ============================================================================ --> |
| 118 | <!-- EELF loggers --> |
| 119 | <!-- ============================================================================ --> |
| 120 | |
| 121 | <logger name="com.att.eelf.audit" level="info" additivity="false"> |
| 122 | <appender-ref ref="asyncEELFAudit" /> |
| 123 | </logger> |
guillaume.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 124 | |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 125 | <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.lambert | 30ec390 | 2021-09-14 12:32:24 +0200 | [diff] [blame] | 131 | </logger> |
Mike Elliott | d32d36e | 2018-02-12 15:54:03 -0500 | [diff] [blame] | 132 | <root level="INFO"> |
| 133 | <appender-ref ref="asyncEELFDebug" /> |
| 134 | </root> |
| 135 | |
| 136 | </configuration> |