Shane Daniel | b36bfcc | 2018-06-26 20:30:18 +0000 | [diff] [blame] | 1 | <configuration scan="true" scanPeriod="10 seconds" debug="false"> |
| 2 | <jmxConfigurator /> |
| 3 | <property name="logDirectory" value="/var/log/onap/pomba-aaictxbuilder" /> |
| 4 | <!-- Example evaluator filter applied against console appender --> |
| 5 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 6 | <!-- filter class="ch.qos.logback.classic.filter.LevelFilter"> <level>ERROR</level> |
| 7 | <onMatch>ACCEPT</onMatch> <onMismatch>DENY</onMismatch> </filter --> |
| 8 | <!-- deny all events with a level below INFO, that is TRACE and DEBUG --> |
| 9 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 10 | <level>INFO</level> |
| 11 | </filter> |
| 12 | <encoder> |
| 13 | <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n |
| 14 | </pattern> |
| 15 | </encoder> |
| 16 | </appender> |
| 17 | |
| 18 | <appender name="ERROR" |
| 19 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 20 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 21 | <level>INFO</level> |
| 22 | </filter> |
| 23 | <file>${logDirectory}/error.log</file> |
| 24 | <append>true</append> |
| 25 | <encoder> |
| 26 | <pattern>%date{"yyyy-MM-dd'T'HH:mm:ss,SSSXXX", UTC}|%X{RequestId}|%.20thread|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%.-5level|%X{ErrorCode}|%X{ErrorDescription}|%msg%n</pattern> |
| 27 | </encoder> |
| 28 | <rollingPolicy |
| 29 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 30 | <maxIndex>10</maxIndex> |
| 31 | <FileNamePattern>${logDirectory}/error.%i.log.zip |
| 32 | </FileNamePattern> |
| 33 | </rollingPolicy> |
| 34 | <triggeringPolicy |
| 35 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 36 | <maxFileSize>10MB</maxFileSize> |
| 37 | </triggeringPolicy> |
| 38 | </appender> |
| 39 | |
| 40 | <appender name="DEBUG" |
| 41 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 42 | <file>${logDirectory}/debug.log</file> |
| 43 | <append>true</append> |
| 44 | <encoder> |
| 45 | <pattern>%date{"yyyy-MM-dd'T'HH:mm:ss,SSSXXX",UTC}|%X{RequestId}|%.20thread|%.-5level|%logger{36}|%msg%n</pattern> |
| 46 | </encoder> |
| 47 | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| 48 | <fileNamePattern>${logDirectory}/debug.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern> |
| 49 | <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
| 50 | <maxFileSize>10MB</maxFileSize> |
| 51 | </timeBasedFileNamingAndTriggeringPolicy> |
| 52 | <maxHistory>5</maxHistory> |
| 53 | </rollingPolicy> |
| 54 | </appender> |
| 55 | |
| 56 | <appender name="AUDIT" |
| 57 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 58 | <file>${logDirectory}/audit.log</file> |
| 59 | <append>true</append> |
| 60 | <encoder> |
| 61 | <pattern>%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%.20thread|%X{VirtualServerName}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Unused}|%X{ProcessKey}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n |
| 62 | </pattern> |
| 63 | </encoder> |
| 64 | <rollingPolicy |
| 65 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 66 | <maxIndex>10</maxIndex> |
| 67 | <FileNamePattern>${logDirectory}/audit.%i.log.zip |
| 68 | </FileNamePattern> |
| 69 | </rollingPolicy> |
| 70 | <triggeringPolicy |
| 71 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 72 | <maxFileSize>10MB</maxFileSize> |
| 73 | </triggeringPolicy> |
| 74 | </appender> |
| 75 | <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender"> |
| 76 | <queueSize>256</queueSize> |
| 77 | <appender-ref ref="AUDIT" /> |
| 78 | </appender> |
| 79 | |
| 80 | <appender name="METRIC" |
| 81 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 82 | <file>${logDirectory}/metric.log</file> |
| 83 | <append>true</append> |
| 84 | <encoder> |
| 85 | <pattern>%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%.20thread|%X{VirtualServerName}|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Unused}|%X{ProcessKey}|%X{TargetVirtualEntity}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}| |
| 86 | %msg%n</pattern> |
| 87 | </encoder> |
| 88 | <rollingPolicy |
| 89 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 90 | <maxIndex>10</maxIndex> |
| 91 | <FileNamePattern>${logDirectory}/metric.%i.log.zip |
| 92 | </FileNamePattern> |
| 93 | </rollingPolicy> |
| 94 | <triggeringPolicy |
| 95 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 96 | <maxFileSize>10MB</maxFileSize> |
| 97 | </triggeringPolicy> |
| 98 | </appender> |
| 99 | <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender"> |
| 100 | <queueSize>256</queueSize> |
| 101 | <appender-ref ref="METRIC" /> |
| 102 | </appender> |
| 103 | |
| 104 | <!-- SECURITY related loggers --> |
| 105 | <appender name="SECURITY" |
| 106 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 107 | <file>${logDirectory}/security.log</file> |
| 108 | <append>true</append> |
| 109 | <encoder> |
| 110 | <pattern>%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%.20thread|%X{VirtualServerName}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Unused}|%X{ProcessKey}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n |
| 111 | </pattern> |
| 112 | </encoder> |
| 113 | <rollingPolicy |
| 114 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 115 | <maxIndex>10</maxIndex> |
| 116 | <FileNamePattern>${logDirectory}/security.%i.log.zip |
| 117 | </FileNamePattern> |
| 118 | </rollingPolicy> |
| 119 | <triggeringPolicy |
| 120 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 121 | <maxFileSize>10MB</maxFileSize> |
| 122 | </triggeringPolicy> |
| 123 | </appender> |
| 124 | <appender name="asyncEELFSecurity" class="ch.qos.logback.classic.AsyncAppender"> |
| 125 | <queueSize>256</queueSize> |
| 126 | <appender-ref ref="SECURITY" /> |
| 127 | </appender> |
| 128 | |
| 129 | <!-- CLDS related loggers --> |
| 130 | <logger name="org.onap.pomba.clds" level="INFO" additivity="true"> |
| 131 | <appender-ref ref="ERROR" /> |
| 132 | </logger> |
| 133 | |
| 134 | <!-- CLDS related loggers --> |
| 135 | <logger name="com.att.eelf.error" level="OFF" additivity="true"> |
| 136 | <appender-ref ref="ERROR" /> |
| 137 | </logger> |
| 138 | <!-- EELF related loggers --> |
| 139 | <logger name="com.att.eelf.audit" level="INFO" additivity="false"> |
| 140 | <appender-ref ref="asyncEELFAudit" /> |
| 141 | </logger> |
| 142 | <logger name="com.att.eelf.metrics" level="DEBUG" additivity="false"> |
| 143 | <appender-ref ref="asyncEELFMetrics" /> |
| 144 | </logger> |
| 145 | <logger name="com.att.eelf.security" level="DEBUG" additivity="false"> |
| 146 | <appender-ref ref="asyncEELFSecurity" /> |
| 147 | </logger> |
| 148 | |
| 149 | |
| 150 | <!-- Spring related loggers --> |
| 151 | <logger name="org.springframework" level="WARN" /> |
| 152 | <logger name="org.springframework.beans" level="WARN" /> |
| 153 | <logger name="org.springframework.web" level="WARN" /> |
| 154 | <logger name="com.blog.spring.jms" level="WARN" /> |
| 155 | |
| 156 | <!-- Other Loggers that may help troubleshoot --> |
| 157 | <logger name="net.sf" level="WARN" /> |
| 158 | <logger name="org.apache.commons.httpclient" level="WARN" /> |
| 159 | <logger name="org.apache.commons" level="WARN" /> |
| 160 | <logger name="org.apache.coyote" level="WARN" /> |
| 161 | <logger name="org.apache.jasper" level="WARN" /> |
| 162 | |
| 163 | <!-- Camel Related Loggers (including restlet/servlet/jaxrs/cxf logging. |
| 164 | May aid in troubleshooting) --> |
| 165 | <logger name="org.apache.camel" level="WARN" /> |
| 166 | <logger name="org.apache.cxf" level="WARN" /> |
| 167 | <logger name="org.apache.camel.processor.interceptor" level="WARN" /> |
| 168 | <logger name="org.apache.cxf.jaxrs.interceptor" level="WARN" /> |
| 169 | <logger name="org.apache.cxf.service" level="WARN" /> |
| 170 | <logger name="org.restlet" level="DEBUG" /> |
| 171 | <logger name="org.apache.camel.component.restlet" level="DEBUG" /> |
| 172 | |
| 173 | <!-- logback internals logging --> |
| 174 | <logger name="ch.qos.logback.classic" level="INFO" /> |
| 175 | <logger name="ch.qos.logback.core" level="INFO" /> |
| 176 | |
| 177 | <!-- logback jms appenders & loggers definition starts here --> |
| 178 | <!-- logback jms appenders & loggers definition starts here --> |
| 179 | <appender name="auditLogs" |
| 180 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 181 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 182 | </filter> |
| 183 | <file>${logDirectory}/Audit.log</file> |
| 184 | <rollingPolicy |
| 185 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 186 | <fileNamePattern>${logDirectory}/Audit.%i.log.zip |
| 187 | </fileNamePattern> |
| 188 | <minIndex>1</minIndex> |
| 189 | <maxIndex>9</maxIndex> |
| 190 | </rollingPolicy> |
| 191 | <triggeringPolicy |
| 192 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 193 | <maxFileSize>5MB</maxFileSize> |
| 194 | </triggeringPolicy> |
| 195 | <encoder> |
| 196 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 197 | </encoder> |
| 198 | </appender> |
| 199 | <appender name="perfLogs" |
| 200 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 201 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 202 | </filter> |
| 203 | <file>${logDirectory}/Perform.log</file> |
| 204 | <rollingPolicy |
| 205 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 206 | <fileNamePattern>${logDirectory}/Perform.%i.log.zip |
| 207 | </fileNamePattern> |
| 208 | <minIndex>1</minIndex> |
| 209 | <maxIndex>9</maxIndex> |
| 210 | </rollingPolicy> |
| 211 | <triggeringPolicy |
| 212 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 213 | <maxFileSize>5MB</maxFileSize> |
| 214 | </triggeringPolicy> |
| 215 | <encoder> |
| 216 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 217 | </encoder> |
| 218 | </appender> |
| 219 | <logger name="AuditRecord" level="INFO" additivity="FALSE"> |
| 220 | <appender-ref ref="auditLogs" /> |
| 221 | </logger> |
| 222 | <logger name="AuditRecord_DirectCall" level="INFO" additivity="FALSE"> |
| 223 | <appender-ref ref="auditLogs" /> |
| 224 | </logger> |
| 225 | <logger name="PerfTrackerRecord" level="INFO" additivity="FALSE"> |
| 226 | <appender-ref ref="perfLogs" /> |
| 227 | </logger> |
| 228 | <!-- logback jms appenders & loggers definition ends here --> |
| 229 | |
| 230 | <root level="WARN"> |
| 231 | <appender-ref ref="DEBUG" /> |
| 232 | <appender-ref ref="STDOUT" /> |
| 233 | </root> |
| 234 | |
| 235 | </configuration> |