Alexis de Talhouƫt | 9a3b3f7 | 2017-11-27 14:54:47 -0500 | [diff] [blame] | 1 | <configuration scan="true" scanPeriod="3 seconds" 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="BPMN"></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 | <!-- ============================================================================ --> |
| 29 | <!-- EELF Appenders --> |
| 30 | <!-- ============================================================================ --> |
| 31 | |
| 32 | <!-- The EELFAppender is used to record events to the general application |
| 33 | log --> |
| 34 | |
| 35 | <!-- EELF Audit Appender. This appender is used to record audit engine |
| 36 | related logging events. The audit logger and appender are specializations |
| 37 | of the EELF application root logger and appender. This can be used to segregate |
| 38 | Policy engine events from other components, or it can be eliminated to record |
| 39 | these events as part of the application root log. --> |
| 40 | |
| 41 | <appender name="EELFAudit" |
| 42 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 43 | <file>${logDirectory}/${auditLogName}${jboss.server.name}.log</file> |
| 44 | <rollingPolicy |
| 45 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 46 | <fileNamePattern>${logDirectory}/${auditLogName}${jboss.server.name}.log.%d</fileNamePattern> |
| 47 | <!--<maxHistory>30</maxHistory>--> |
| 48 | </rollingPolicy> |
| 49 | <encoder> |
| 50 | <pattern>${auditPattern}</pattern> |
| 51 | </encoder> |
| 52 | </appender> |
| 53 | <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender"> |
| 54 | <queueSize>256</queueSize> |
| 55 | <appender-ref ref="EELFAudit" /> |
| 56 | </appender> |
| 57 | |
| 58 | <appender name="EELFMetrics" |
| 59 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 60 | <file>${logDirectory}/${metricsLogName}${jboss.server.name}.log</file> |
| 61 | <rollingPolicy |
| 62 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 63 | <fileNamePattern>${logDirectory}/${metricsLogName}${jboss.server.name}.log.%d</fileNamePattern> |
| 64 | <!--<maxHistory>30</maxHistory>--> |
| 65 | </rollingPolicy> |
| 66 | <encoder> |
| 67 | <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - |
| 68 | %msg%n"</pattern> --> |
| 69 | <pattern>${metricPattern}</pattern> |
| 70 | </encoder> |
| 71 | </appender> |
| 72 | |
| 73 | |
| 74 | <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender"> |
| 75 | <queueSize>256</queueSize> |
| 76 | <appender-ref ref="EELFMetrics"/> |
| 77 | </appender> |
| 78 | |
| 79 | <appender name="EELFError" |
| 80 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 81 | <file>${logDirectory}/${errorLogName}${jboss.server.name}.log</file> |
| 82 | <rollingPolicy |
| 83 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 84 | <fileNamePattern>${logDirectory}/${errorLogName}${jboss.server.name}.log.%d</fileNamePattern> |
| 85 | <!--<maxHistory>30</maxHistory>--> |
| 86 | </rollingPolicy> |
| 87 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 88 | <level>INFO</level> |
| 89 | </filter> |
| 90 | <encoder> |
| 91 | <pattern>${errorPattern}</pattern> |
| 92 | </encoder> |
| 93 | </appender> |
| 94 | |
| 95 | <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender"> |
| 96 | <queueSize>256</queueSize> |
| 97 | <appender-ref ref="EELFError"/> |
| 98 | </appender> |
| 99 | |
| 100 | <appender name="EELFDebug" |
| 101 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 102 | <file>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log</file> |
| 103 | <rollingPolicy |
| 104 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 105 | <fileNamePattern>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log.%d</fileNamePattern> |
| 106 | <!--<maxHistory>30</maxHistory>--> |
| 107 | </rollingPolicy> |
| 108 | <encoder> |
| 109 | <pattern>${debugPattern}</pattern> |
| 110 | </encoder> |
| 111 | </appender> |
| 112 | |
| 113 | <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender"> |
| 114 | <queueSize>256</queueSize> |
| 115 | <appender-ref ref="EELFDebug" /> |
| 116 | <includeCallerData>true</includeCallerData> |
| 117 | </appender> |
| 118 | |
| 119 | |
| 120 | <!-- ============================================================================ --> |
| 121 | <!-- EELF loggers --> |
| 122 | <!-- ============================================================================ --> |
| 123 | |
| 124 | <logger name="com.att.eelf.audit" level="info" additivity="false"> |
| 125 | <appender-ref ref="asyncEELFAudit" /> |
| 126 | </logger> |
| 127 | |
| 128 | <logger name="com.att.eelf.metrics" level="info" additivity="false"> |
| 129 | <appender-ref ref="asyncEELFMetrics" /> |
| 130 | </logger> |
| 131 | |
| 132 | <logger name="com.att.eelf.error" level="debug" additivity="false"> |
| 133 | <appender-ref ref="asyncEELFError" /> |
| 134 | </logger> |
| 135 | <root level="INFO"> |
| 136 | <appender-ref ref="asyncEELFDebug" /> |
| 137 | </root> |
| 138 | |
| 139 | </configuration> |