BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <configuration scan="true" scanPeriod="3 seconds" debug="false"> |
| 3 | <!--<jmxConfigurator /> --> |
| 4 | <!-- directory path for all other type logs --> |
| 5 | <property name="logDir" value="/var/log/onap" /> |
| 6 | <property name="componentName" value="AAI-UI" /> |
| 7 | <property name="logDirectory" value="${logDir}/${componentName}" /> |
| 8 | <!-- default eelf log file names --> |
| 9 | <property name="generalLogName" value="application" /> |
| 10 | <property name="errorLogName" value="error" /> |
| 11 | <property name="metricsLogName" value="metrics" /> |
| 12 | <property name="auditLogName" value="audit" /> |
| 13 | <property name="debugLogName" value="debug" /> |
| 14 | <property name="queueSize" value="256" /> |
| 15 | <property name="maxFileSize" value="50MB" /> |
| 16 | <property name="maxHistory" value="30" /> |
| 17 | <property name="totalSizeCap" value="10GB" /> |
yuryn | 9a6bc87 | 2017-12-19 10:39:35 +0200 | [diff] [blame^] | 18 | <property name="pattern" value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", UTC}\t[%thread]\t%-5level\t%logger{36}\t%replace(%replace(%replace(%mdc){'\t','\\\\t'}){', ','\t'}){'\n', '\\\\n'}\t%replace(%replace(%msg){'\n', '\\\\n'}){'\t','\\\\t'}%n" /> |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 19 | |
| 20 | <!-- Example evaluator filter applied against console appender --> |
| 21 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 22 | <encoder> |
| 23 | <pattern>${pattern}</pattern> |
| 24 | </encoder> |
| 25 | </appender> |
| 26 | <!-- ============================================================================ --> |
| 27 | <!-- EELF Appenders --> |
| 28 | <!-- ============================================================================ --> |
| 29 | <!-- The EELFAppender is used to record events to the general application |
| 30 | log --> |
| 31 | <appender name="EELF" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 32 | <file>${logDirectory}/${generalLogName}.log</file> |
| 33 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 34 | <fileNamePattern>${logDirectory}/${generalLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern> |
| 35 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
| 36 | <maxFileSize>${maxFileSize}</maxFileSize> |
| 37 | </timeBasedFileNamingAndTriggeringPolicy> |
| 38 | <maxHistory>${maxHistory}</maxHistory> |
| 39 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 40 | </rollingPolicy> |
| 41 | <encoder> |
| 42 | <pattern>${pattern}</pattern> |
| 43 | </encoder> |
| 44 | </appender> |
| 45 | <appender name="asyncEELF" class="ch.qos.logback.classic.AsyncAppender"> |
| 46 | <!-- deny all events with a level below INFO, that is TRACE and DEBUG --> |
| 47 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 48 | <level>INFO</level> |
| 49 | </filter> |
| 50 | <queueSize>${queueSize}</queueSize> |
| 51 | <appender-ref ref="EELF" /> |
| 52 | </appender> |
| 53 | <!-- EELF Audit Appender. This appender is used to record audit engine |
| 54 | related logging events. The audit logger and appender are specializations |
| 55 | of the EELF application root logger and appender. This can be used to segregate |
| 56 | Policy engine events from other components, or it can be eliminated to record |
| 57 | these events as part of the application root log. --> |
| 58 | <appender name="EELFAudit" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 59 | <file>${logDirectory}/${auditLogName}.log</file> |
| 60 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 61 | <fileNamePattern>${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern> |
| 62 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
| 63 | <maxFileSize>${maxFileSize}</maxFileSize> |
| 64 | </timeBasedFileNamingAndTriggeringPolicy> |
| 65 | <maxHistory>${maxHistory}</maxHistory> |
| 66 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 67 | </rollingPolicy> |
| 68 | <encoder> |
| 69 | <pattern>${pattern}</pattern> |
| 70 | </encoder> |
| 71 | </appender> |
| 72 | <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender"> |
| 73 | <queueSize>${queueSize}</queueSize> |
| 74 | <appender-ref ref="EELFAudit" /> |
| 75 | </appender> |
| 76 | <appender name="EELFMetrics" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 77 | <file>${logDirectory}/${metricsLogName}.log</file> |
| 78 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 79 | <fileNamePattern>${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern> |
| 80 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
| 81 | <maxFileSize>${maxFileSize}</maxFileSize> |
| 82 | </timeBasedFileNamingAndTriggeringPolicy> |
| 83 | <maxHistory>${maxHistory}</maxHistory> |
| 84 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 85 | </rollingPolicy> |
| 86 | <encoder> |
| 87 | <pattern>${pattern}</pattern> |
| 88 | </encoder> |
| 89 | </appender> |
| 90 | <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender"> |
| 91 | <queueSize>${queueSize}</queueSize> |
| 92 | <appender-ref ref="EELFMetrics" /> |
| 93 | </appender> |
| 94 | |
| 95 | <appender name="EELFError" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 96 | <file>${logDirectory}/${errorLogName}.log</file> |
| 97 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 98 | <fileNamePattern>${logDirectory}/${errorLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern> |
| 99 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
| 100 | <maxFileSize>${maxFileSize}</maxFileSize> |
| 101 | </timeBasedFileNamingAndTriggeringPolicy> |
| 102 | <maxHistory>${maxHistory}</maxHistory> |
| 103 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 104 | </rollingPolicy> |
| 105 | <encoder> |
| 106 | <pattern>${pattern}</pattern> |
| 107 | </encoder> |
| 108 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 109 | <level>INFO</level> |
| 110 | </filter> |
| 111 | </appender> |
| 112 | <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender"> |
| 113 | <queueSize>${queueSize}</queueSize> |
| 114 | <appender-ref ref="EELFError" /> |
| 115 | </appender> |
| 116 | |
| 117 | <appender name="EELFDebug" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 118 | <file>${logDirectory}/${debugLogName}.log</file> |
| 119 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 120 | <fileNamePattern>${logDirectory}/${debugLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern> |
| 121 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
| 122 | <maxFileSize>${maxFileSize}</maxFileSize> |
| 123 | </timeBasedFileNamingAndTriggeringPolicy> |
| 124 | <maxHistory>${maxHistory}</maxHistory> |
| 125 | <totalSizeCap>${totalSizeCap}</totalSizeCap> |
| 126 | </rollingPolicy> |
| 127 | <encoder> |
| 128 | <pattern>${pattern}</pattern> |
| 129 | </encoder> |
| 130 | </appender> |
| 131 | <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender"> |
| 132 | <queueSize>${queueSize}</queueSize> |
| 133 | <appender-ref ref="EELFDebug" /> |
| 134 | <includeCallerData>false</includeCallerData> |
| 135 | </appender> |
| 136 | <!-- ============================================================================ --> |
| 137 | <!-- EELF loggers --> |
| 138 | <!-- ============================================================================ --> |
| 139 | <logger name="com.att.eelf" level="INFO" additivity="false" /> |
| 140 | <logger name="org.elasticsearch.plugins" level="WARN" /> |
| 141 | <logger name="com.att.eelf.debug" level="debug" additivity="false"> |
| 142 | <appender-ref ref="asyncEELFDebug" /> |
| 143 | </logger> |
| 144 | <logger name="com.att.eelf.audit" level="info" additivity="false"> |
| 145 | <appender-ref ref="asyncEELFAudit" /> |
| 146 | </logger> |
| 147 | <logger name="com.att.eelf.metrics" level="info" additivity="false"> |
| 148 | <appender-ref ref="asyncEELFMetrics" /> |
| 149 | </logger> |
| 150 | <logger name="com.att.eelf.error" level="info" additivity="false"> |
| 151 | <appender-ref ref="asyncEELFError" /> |
| 152 | </logger> |
| 153 | <!-- Spring related loggers --> |
| 154 | <logger name="org.springframework" level="WARN" /> |
| 155 | <logger name="org.springframework.beans" level="WARN" /> |
| 156 | <logger name="org.springframework.web" level="WARN" /> |
| 157 | <logger name="com.blog.spring.jms" level="WARN" /> |
| 158 | <!-- AJSC Services (bootstrap services) --> |
| 159 | <logger name="ajsc" level="WARN" /> |
| 160 | <logger name="ajsc.RouteMgmtService" level="WARN" /> |
| 161 | <logger name="ajsc.ComputeService" level="WARN" /> |
| 162 | <logger name="ajsc.VandelayService" level="WARN" /> |
| 163 | <logger name="ajsc.FilePersistenceService" level="WARN" /> |
| 164 | <logger name="ajsc.UserDefinedJarService" level="WARN" /> |
| 165 | <logger name="ajsc.UserDefinedBeansDefService" level="WARN" /> |
| 166 | <logger name="ajsc.LoggingConfigurationService" level="WARN" /> |
| 167 | <logger name="ajsc.ErrorMessageLookupService" level="WARN" /> |
| 168 | <!-- AJSC related loggers (DME2 Registration, csi logging, restlet, servlet |
| 169 | logging) --> |
| 170 | <logger name="ajsc.utils" level="WARN" /> |
| 171 | <logger name="ajsc.utils.DME2Helper" level="WARN" /> |
| 172 | <logger name="ajsc.filters" level="WARN" /> |
| 173 | <logger name="ajsc.beans.interceptors" level="WARN" /> |
| 174 | <logger name="ajsc.restlet" level="WARN" /> |
| 175 | <logger name="ajsc.servlet" level="WARN" /> |
| 176 | <logger name="com.att" level="WARN" /> |
| 177 | <logger name="com.att.ajsc.csi.logging" level="WARN" /> |
| 178 | <logger name="com.att.ajsc.filemonitor" level="WARN" /> |
| 179 | <!-- Other Loggers that may help troubleshoot --> |
| 180 | <logger name="net.sf" level="WARN" /> |
| 181 | <logger name="org.apache.commons.httpclient" level="WARN" /> |
| 182 | <logger name="org.apache.commons" level="WARN" /> |
| 183 | <logger name="org.apache.coyote" level="WARN" /> |
| 184 | <logger name="org.apache.jasper" level="WARN" /> |
| 185 | <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging. |
| 186 | May aid in troubleshooting) --> |
| 187 | <logger name="org.apache.camel" level="WARN" /> |
| 188 | <logger name="org.apache.cxf" level="WARN" /> |
| 189 | <logger name="org.apache.camel.processor.interceptor" level="WARN" /> |
| 190 | <logger name="org.apache.cxf.jaxrs.interceptor" level="WARN" /> |
| 191 | <logger name="org.apache.cxf.service" level="WARN" /> |
| 192 | <logger name="org.restlet" level="WARN" /> |
| 193 | <logger name="org.apache.camel.component.restlet" level="WARN" /> |
| 194 | <!-- logback internals logging --> |
| 195 | <logger name="ch.qos.logback.classic" level="INFO" /> |
| 196 | <logger name="ch.qos.logback.core" level="INFO" /> |
| 197 | <root level="INFO"> |
| 198 | <appender-ref ref="asyncEELFDebug" /> |
| 199 | </root> |
| 200 | </configuration> |