BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 1 | <configuration scan="true" scanPeriod="3 seconds" debug="false"> |
Keren Joseph | 29f11ab | 2018-04-22 15:22:46 +0300 | [diff] [blame^] | 2 | <!--<jmxConfigurator /> --> |
| 3 | <!-- directory path for all other type logs --> |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 4 | |
Keren Joseph | 29f11ab | 2018-04-22 15:22:46 +0300 | [diff] [blame^] | 5 | <property name="logDir" value="/var/log/onap" /> |
| 6 | |
| 7 | <!-- <ECOMP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" |
| 8 | | "SDNC" | "AC" --> |
| 9 | <property name="componentName" value="AAI-UI"></property> |
| 10 | |
| 11 | <!-- default eelf log file names --> |
| 12 | <property name="generalLogName" value="error" /> |
| 13 | <property name="metricsLogName" value="metrics" /> |
| 14 | <property name="auditLogName" value="audit" /> |
| 15 | <property name="debugLogName" value="debug" /> |
| 16 | |
| 17 | <property name="errorLogPattern" |
| 18 | value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%mdc{RequestId}|%thread|AAIUI|%mdc{PartnerName}|%logger|%.-5level|%msg%n" /> |
| 19 | <property name="auditMetricPattern" value="%m%n" /> |
| 20 | |
| 21 | <property name="logDirectory" value="${logDir}/${componentName}" /> |
| 22 | |
| 23 | |
| 24 | <!-- Example evaluator filter applied against console appender --> |
| 25 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 26 | <encoder> |
| 27 | <pattern>${errorLogPattern}</pattern> |
| 28 | </encoder> |
| 29 | </appender> |
| 30 | |
| 31 | <!-- ============================================================================ --> |
| 32 | <!-- EELF Appenders --> |
| 33 | <!-- ============================================================================ --> |
| 34 | |
| 35 | <!-- The EELFAppender is used to record events to the general application |
| 36 | log --> |
| 37 | |
| 38 | <appender name="EELF" |
| 39 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 40 | <file>${logDirectory}/${generalLogName}.log</file> |
| 41 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 42 | <fileNamePattern>${logDirectory}/${generalLogName}.%d{yyyy-MM-dd}.log.zip |
| 43 | </fileNamePattern> |
| 44 | <maxHistory>60</maxHistory> |
| 45 | </rollingPolicy> |
| 46 | <encoder> |
| 47 | <pattern>${errorLogPattern}</pattern> |
| 48 | </encoder> |
| 49 | </appender> |
| 50 | <appender name="asyncEELF" class="ch.qos.logback.classic.AsyncAppender"> |
| 51 | <!-- deny all events with a level below INFO, that is TRACE and DEBUG --> |
| 52 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 53 | <level>INFO</level> |
| 54 | </filter> |
| 55 | <queueSize>256</queueSize> |
| 56 | <appender-ref ref="EELF" /> |
| 57 | </appender> |
| 58 | |
| 59 | |
| 60 | <!-- EELF Audit Appender. This appender is used to record audit engine related |
| 61 | logging events. The audit logger and appender are specializations of the |
| 62 | EELF application root logger and appender. This can be used to segregate |
| 63 | Policy engine events from other components, or it can be eliminated to record |
| 64 | these events as part of the application root log. --> |
| 65 | |
| 66 | <appender name="EELFAudit" |
| 67 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 68 | <file>${logDirectory}/${auditLogName}.log</file> |
| 69 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 70 | <fileNamePattern>${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.log.zip |
| 71 | </fileNamePattern> |
| 72 | <maxHistory>60</maxHistory> |
| 73 | </rollingPolicy> |
| 74 | <encoder> |
| 75 | <pattern>${auditMetricPattern}</pattern> |
| 76 | </encoder> |
| 77 | </appender> |
| 78 | <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender"> |
| 79 | <queueSize>256</queueSize> |
| 80 | <appender-ref ref="EELFAudit" /> |
| 81 | </appender> |
| 82 | |
| 83 | <appender name="EELFMetrics" |
| 84 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 85 | <file>${logDirectory}/${metricsLogName}.log</file> |
| 86 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 87 | <fileNamePattern>${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.log.zip |
| 88 | </fileNamePattern> |
| 89 | <maxHistory>60</maxHistory> |
| 90 | </rollingPolicy> |
| 91 | <encoder> |
| 92 | <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n"</pattern> --> |
| 93 | <pattern>${auditMetricPattern}</pattern> |
| 94 | </encoder> |
| 95 | </appender> |
| 96 | |
| 97 | |
| 98 | <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender"> |
| 99 | <queueSize>256</queueSize> |
| 100 | <appender-ref ref="EELFMetrics" /> |
| 101 | </appender> |
| 102 | |
| 103 | <appender name="EELFDebug" |
| 104 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 105 | <file>${logDirectory}/${debugLogName}.log</file> |
| 106 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 107 | <fileNamePattern>${logDirectory}/${debugLogName}.%d{yyyy-MM-dd}.log.zip |
| 108 | </fileNamePattern> |
| 109 | <maxHistory>60</maxHistory> |
| 110 | </rollingPolicy> |
| 111 | <encoder> |
| 112 | <pattern>${errorLogPattern}</pattern> |
| 113 | </encoder> |
| 114 | </appender> |
| 115 | |
| 116 | <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender"> |
| 117 | <queueSize>256</queueSize> |
| 118 | <appender-ref ref="EELFDebug" /> |
| 119 | <includeCallerData>false</includeCallerData> |
| 120 | </appender> |
| 121 | |
| 122 | <!-- ============================================================================ --> |
| 123 | <!-- EELF loggers --> |
| 124 | <!-- ============================================================================ --> |
| 125 | <logger name="com.att.eelf" level="info" additivity="false"> |
| 126 | <appender-ref ref="asyncEELF" /> |
| 127 | <appender-ref ref="asyncEELFDebug" /> |
| 128 | </logger> |
| 129 | |
| 130 | <logger name="com.att.eelf.audit" level="info" additivity="false"> |
| 131 | <appender-ref ref="asyncEELFAudit" /> |
| 132 | </logger> |
| 133 | <logger name="com.att.eelf.metrics" level="info" additivity="false"> |
| 134 | <appender-ref ref="asyncEELFMetrics" /> |
| 135 | </logger> |
| 136 | |
| 137 | <!-- Spring related loggers --> |
| 138 | <logger name="org.springframework" level="WARN" /> |
| 139 | <logger name="org.springframework.beans" level="WARN" /> |
| 140 | <logger name="org.springframework.web" level="WARN" /> |
| 141 | <logger name="com.blog.spring.jms" level="WARN" /> |
| 142 | |
| 143 | <!-- Sparky loggers --> |
| 144 | <logger name="org.onap" level="INFO" /> |
| 145 | |
| 146 | <!-- Other Loggers that may help troubleshoot --> |
| 147 | <logger name="net.sf" level="WARN" /> |
| 148 | <logger name="org.apache.commons.httpclient" level="WARN" /> |
| 149 | <logger name="org.apache.commons" level="WARN" /> |
| 150 | <logger name="org.apache.coyote" level="WARN" /> |
| 151 | <logger name="org.apache.jasper" level="WARN" /> |
| 152 | |
| 153 | <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging. |
| 154 | May aid in troubleshooting) --> |
| 155 | <logger name="org.apache.camel" level="WARN" /> |
| 156 | <logger name="org.apache.cxf" level="WARN" /> |
| 157 | <logger name="org.apache.camel.processor.interceptor" level="WARN" /> |
| 158 | <logger name="org.apache.cxf.jaxrs.interceptor" level="WARN" /> |
| 159 | <logger name="org.apache.cxf.service" level="WARN" /> |
| 160 | <logger name="org.restlet" level="WARN" /> |
| 161 | <logger name="org.apache.camel.component.restlet" level="WARN" /> |
| 162 | |
| 163 | <!-- logback internals logging --> |
| 164 | <logger name="ch.qos.logback.classic" level="WARN" /> |
| 165 | <logger name="ch.qos.logback.core" level="WARN" /> |
| 166 | |
| 167 | <root> |
| 168 | <appender-ref ref="asyncEELF" /> |
| 169 | <!-- <appender-ref ref="asyncEELFDebug" /> --> |
| 170 | </root> |
| 171 | |
| 172 | </configuration> |