jananib | 28734e0 | 2020-04-08 21:35:45 +0530 | [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" /> |
| 5 | <!-- directory path for debugging type logs --> |
| 6 | <property name="debugDir" value="/var/log/onap" /> |
| 7 | <!-- specify the component name |
| 8 | <ECOMP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" --> |
| 9 | <property name="componentName" value="MSO"></property> |
| 10 | <property name="subComponentName" value="nssmfadapter"></property> |
| 11 | <!-- log file names --> |
| 12 | <property name="errorLogName" value="error" /> |
| 13 | <property name="metricsLogName" value="metrics" /> |
| 14 | <property name="auditLogName" value="audit" /> |
| 15 | <property name="debugLogName" value="debug" /> |
| 16 | |
| 17 | <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" /> |
| 18 | <property name="debugPattern" value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", UTC}|%X{RequestId}|%msg%n" /> |
| 19 | |
| 20 | <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" /> |
| 21 | <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" /> |
| 22 | <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" /> |
| 23 | <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" /> |
| 24 | |
| 25 | <!-- ============================================================================ --> |
| 26 | <!-- EELF Appenders --> |
| 27 | <!-- ============================================================================ --> |
| 28 | |
| 29 | <!-- The EELFAppender is used to record events to the general application |
| 30 | log --> |
| 31 | <!-- EELF Audit Appender. This appender is used to record audit engine |
| 32 | related logging events. The audit logger and appender are specializations |
| 33 | of the EELF application root logger and appender. This can be used to segregate |
| 34 | Policy engine events from other components, or it can be eliminated to record |
| 35 | these events as part of the application root log. --> |
| 36 | <appender name="EELFAudit" |
| 37 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 38 | <file>${logDirectory}/${auditLogName}${jboss.server.name}.log</file> |
| 39 | <rollingPolicy |
| 40 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 41 | <fileNamePattern>${logDirectory}/${auditLogName}${jboss.server.name}.log.%d</fileNamePattern> |
| 42 | <!--<maxHistory>30</maxHistory>--> |
| 43 | </rollingPolicy> |
| 44 | <encoder> |
| 45 | <pattern>${auditPattern}</pattern> |
| 46 | </encoder> |
| 47 | </appender> |
| 48 | <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender"> |
| 49 | <queueSize>256</queueSize> |
| 50 | <appender-ref ref="EELFAudit" /> |
| 51 | </appender> |
| 52 | |
| 53 | <appender name="EELFMetrics" |
| 54 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 55 | <file>${logDirectory}/${metricsLogName}${jboss.server.name}.log</file> |
| 56 | <rollingPolicy |
| 57 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 58 | <fileNamePattern>${logDirectory}/${metricsLogName}${jboss.server.name}.log.%d</fileNamePattern> |
| 59 | <!--<maxHistory>30</maxHistory>--> |
| 60 | </rollingPolicy> |
| 61 | <encoder> |
| 62 | <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - |
| 63 | %msg%n"</pattern> --> |
| 64 | <pattern>${metricPattern}</pattern> |
| 65 | </encoder> |
| 66 | </appender> |
| 67 | |
| 68 | <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender"> |
| 69 | <queueSize>256</queueSize> |
| 70 | <appender-ref ref="EELFMetrics"/> |
| 71 | </appender> |
| 72 | |
| 73 | <appender name="EELFError" |
| 74 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 75 | <file>${logDirectory}/${errorLogName}${jboss.server.name}.log</file> |
| 76 | <rollingPolicy |
| 77 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 78 | <fileNamePattern>${logDirectory}/${errorLogName}${jboss.server.name}.log.%d</fileNamePattern> |
| 79 | <!--<maxHistory>30</maxHistory>--> |
| 80 | </rollingPolicy> |
| 81 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 82 | <level>INFO</level> |
| 83 | </filter> |
| 84 | <encoder> |
| 85 | <pattern>${errorPattern}</pattern> |
| 86 | </encoder> |
| 87 | </appender> |
| 88 | |
| 89 | <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender"> |
| 90 | <queueSize>256</queueSize> |
| 91 | <appender-ref ref="EELFError"/> |
| 92 | </appender> |
| 93 | |
| 94 | <appender name="EELFDebug" |
| 95 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 96 | <file>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log</file> |
| 97 | <rollingPolicy |
| 98 | class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 99 | <fileNamePattern>${debugLogDirectory}/${debugLogName}${jboss.server.name}.log.%d</fileNamePattern> |
| 100 | <!--<maxHistory>30</maxHistory>--> |
| 101 | </rollingPolicy> |
| 102 | <encoder> |
| 103 | <pattern>${debugPattern}</pattern> |
| 104 | </encoder> |
| 105 | </appender> |
| 106 | |
| 107 | <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender"> |
| 108 | <queueSize>256</queueSize> |
| 109 | <appender-ref ref="EELFDebug" /> |
| 110 | <includeCallerData>true</includeCallerData> |
| 111 | </appender> |
| 112 | |
| 113 | <!-- ============================================================================ --> |
| 114 | <!-- EELF loggers --> |
| 115 | <!-- ============================================================================ --> |
| 116 | |
| 117 | <logger name="com.att.eelf.audit" level="info" additivity="false"> |
| 118 | <appender-ref ref="asyncEELFAudit" /> |
| 119 | </logger> |
| 120 | |
| 121 | <logger name="com.att.eelf.metrics" level="info" additivity="false"> |
| 122 | <appender-ref ref="asyncEELFMetrics" /> |
| 123 | </logger> |
| 124 | |
| 125 | <logger name="com.att.eelf.error" level="debug" additivity="false"> |
| 126 | <appender-ref ref="asyncEELFError" /> |
| 127 | </logger> |
| 128 | <root level="INFO"> |
| 129 | <appender-ref ref="asyncEELFDebug" /> |
| 130 | </root> |
| 131 | |
| 132 | </configuration> |