jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2020 Bell Canada. All rights reserved. |
| 4 | ================================================================================ |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | Unless required by applicable law or agreed to in writing, software |
| 10 | distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | See the License for the specific language governing permissions and |
| 13 | limitations under the License. |
| 14 | SPDX-License-Identifier: Apache-2.0 |
| 15 | ============LICENSE_END========================================================= |
| 16 | --> |
| 17 | |
| 18 | <configuration scan="true" scanPeriod="30 seconds" debug="false"> |
| 19 | |
| 20 | <appender name="ErrorOut" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 21 | <file>/var/log/onap/policy/pdpd/error.log</file> |
| 22 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 23 | <fileNamePattern>/var/log/onap/policy/pdpd/error.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern> |
| 24 | <maxFileSize>50MB</maxFileSize> |
| 25 | <maxHistory>30</maxHistory> |
| 26 | <totalSizeCap>10GB</totalSizeCap> |
| 27 | </rollingPolicy> |
| 28 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 29 | <level>WARN</level> |
| 30 | </filter> |
| 31 | <encoder> |
| 32 | <pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n</pattern> |
| 33 | </encoder> |
| 34 | </appender> |
| 35 | |
| 36 | <appender name="AsyncErrorOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 37 | <appender-ref ref="ErrorOut" /> |
| 38 | </appender> |
| 39 | |
| 40 | <appender name="DebugOut" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 41 | <file>/var/log/onap/policy/pdpd/debug.log</file> |
| 42 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 43 | <fileNamePattern>/var/log/onap/policy/pdpd/debug.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern> |
| 44 | <maxFileSize>50MB</maxFileSize> |
| 45 | <maxHistory>30</maxHistory> |
| 46 | <totalSizeCap>10GB</totalSizeCap> |
| 47 | </rollingPolicy> |
| 48 | <encoder> |
| 49 | <pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%level|%logger{0}|%thread] %msg%n</pattern> |
| 50 | </encoder> |
| 51 | </appender> |
| 52 | |
| 53 | <appender name="AsyncDebugOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 54 | <appender-ref ref="DebugOut" /> |
| 55 | </appender> |
| 56 | |
| 57 | <appender name="NetworkOut" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 58 | <file>/var/log/onap/policy/pdpd/network.log</file> |
| 59 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 60 | <fileNamePattern>/var/log/onap/policy/pdpd/network.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern> |
| 61 | <maxFileSize>50MB</maxFileSize> |
| 62 | <maxHistory>30</maxHistory> |
| 63 | <totalSizeCap>10GB</totalSizeCap> |
| 64 | </rollingPolicy> |
| 65 | <encoder> |
| 66 | <pattern>[%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%t]%m%n</pattern> |
| 67 | </encoder> |
| 68 | </appender> |
| 69 | |
| 70 | <appender name="AsyncNetworkOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 71 | <appender-ref ref="NetworkOut" /> |
| 72 | </appender> |
| 73 | |
| 74 | <appender name="MetricOut" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 75 | <file>/var/log/onap/policy/pdpd/metric.log</file> |
| 76 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 77 | <fileNamePattern>/var/log/onap/policy/pdpd/metric.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern> |
| 78 | <maxFileSize>50MB</maxFileSize> |
| 79 | <maxHistory>30</maxHistory> |
| 80 | <totalSizeCap>10GB</totalSizeCap> |
| 81 | </rollingPolicy> |
| 82 | <filter class="org.onap.policy.drools.utils.logging.LoggerMarkerFilter$MetricLoggerMarkerFilter" /> |
| 83 | <encoder> |
| 84 | <pattern>%X{RequestID}|%X{InvocationID}|%X{ServiceName}|%X{PartnerName}|%X{BeginTimestamp}|%X{EndTimestamp}|%X{ElapsedTime}|%X{ServiceInstanceID}|%X{VirtualServerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%X{Severity}|%X{TargetEntity}|%X{TargetServiceName}|%X{Server}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{ClientIPAddress}|%X{ProcessKey}|%X{RemoteHost}||%X{TargetVirtualEntity}|%level|%thread| %msg%n</pattern> |
| 85 | </encoder> |
| 86 | </appender> |
| 87 | |
| 88 | <appender name="AsyncMetricOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 89 | <appender-ref ref="MetricOut" /> |
| 90 | </appender> |
| 91 | |
| 92 | <appender name="TransactionOut" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 93 | <file>/var/log/onap/policy/pdpd/audit.log</file> |
| 94 | <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 95 | <fileNamePattern>/var/log/onap/policy/pdpd/audit.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern> |
| 96 | <maxFileSize>50MB</maxFileSize> |
| 97 | <maxHistory>30</maxHistory> |
| 98 | <totalSizeCap>10GB</totalSizeCap> |
| 99 | </rollingPolicy> |
| 100 | <filter class="org.onap.policy.drools.utils.logging.LoggerMarkerFilter$TransactionLoggerMarkerFilter" /> |
| 101 | <encoder> |
| 102 | <pattern>%X{RequestID}|%X{InvocationID}|%X{ServiceName}|%X{PartnerName}|%X{BeginTimestamp}|%X{EndTimestamp}|%X{ElapsedTime}|%X{ServiceInstanceID}|%X{VirtualServerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%X{Severity}|%X{TargetEntity}|%X{TargetServiceName}|%X{Server}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{ClientIPAddress}|%X{ProcessKey}|%X{RemoteHost}||%X{TargetVirtualEntity}|%level|%thread| %msg%n</pattern> |
| 103 | </encoder> |
| 104 | </appender> |
| 105 | |
| 106 | <appender name="AsyncTransactionOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 107 | <appender-ref ref="TransactionOut" /> |
| 108 | </appender> |
| 109 | |
| 110 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 111 | <encoder> |
| 112 | <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern> |
| 113 | </encoder> |
| 114 | </appender> |
| 115 | |
| 116 | <appender name="AsyncStdOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 117 | <appender-ref ref="STDOUT" /> |
| 118 | </appender> |
| 119 | |
| 120 | <appender name="MetricStdOut" class="ch.qos.logback.core.ConsoleAppender"> |
| 121 | <filter class="org.onap.policy.drools.utils.logging.LoggerMarkerFilter$MetricLoggerMarkerFilter" /> |
| 122 | <encoder> |
| 123 | <pattern>%X{RequestID}|%X{InvocationID}|%X{ServiceName}|%X{PartnerName}|%X{BeginTimestamp}|%X{EndTimestamp}|%X{ElapsedTime}|%X{ServiceInstanceID}|%X{VirtualServerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%X{Severity}|%X{TargetEntity}|%X{TargetServiceName}|%X{Server}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{ClientIPAddress}|%X{ProcessKey}|%X{RemoteHost}||%X{TargetVirtualEntity}|%level|%thread| %msg%n</pattern> |
| 124 | </encoder> |
| 125 | </appender> |
| 126 | |
| 127 | <appender name="AsyncMetricStdOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 128 | <appender-ref ref="MetricStdOut" /> |
| 129 | </appender> |
| 130 | |
| 131 | <appender name="TransactionStdOut" class="ch.qos.logback.core.ConsoleAppender"> |
| 132 | <filter class="org.onap.policy.drools.utils.logging.LoggerMarkerFilter$TransactionLoggerMarkerFilter" /> |
| 133 | <encoder> |
| 134 | <pattern>%X{RequestID}|%X{InvocationID}|%X{ServiceName}|%X{PartnerName}|%X{BeginTimestamp}|%X{EndTimestamp}|%X{ElapsedTime}|%X{ServiceInstanceID}|%X{VirtualServerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%X{Severity}|%X{TargetEntity}|%X{TargetServiceName}|%X{Server}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{ClientIPAddress}|%X{ProcessKey}|%X{RemoteHost}||%X{TargetVirtualEntity}|%level|%thread| %msg%n</pattern> |
| 135 | </encoder> |
| 136 | </appender> |
| 137 | |
| 138 | <appender name="AsyncTransactionStdOut" class="ch.qos.logback.classic.AsyncAppender"> |
| 139 | <appender-ref ref="TransactionStdOut" /> |
| 140 | </appender> |
| 141 | |
| 142 | <logger name="network" level="INFO" additivity="false"> |
| 143 | <appender-ref ref="AsyncNetworkOut" /> |
| 144 | <appender-ref ref="AsyncStdOut" /> |
| 145 | </logger> |
| 146 | |
| 147 | <logger name="org.eclipse.jetty.server.RequestLog" level="info" additivity="false"> |
| 148 | <appender-ref ref="AsyncNetworkOut" /> |
| 149 | <appender-ref ref="AsyncStdOut" /> |
| 150 | </logger> |
| 151 | |
| 152 | <root level="INFO"> |
| 153 | <appender-ref ref="AsyncDebugOut" /> |
| 154 | <appender-ref ref="AsyncErrorOut" /> |
| 155 | <appender-ref ref="AsyncMetricOut" /> |
| 156 | <appender-ref ref="AsyncTransactionOut" /> |
| 157 | <appender-ref ref="AsyncStdOut" /> |
| 158 | <appender-ref ref="AsyncMetricStdOut" /> |
| 159 | <appender-ref ref="AsyncTransactionStdOut" /> |
| 160 | </root> |
| 161 | |
Bruno Sakoto | 9534b52 | 2020-07-24 12:40:42 -0400 | [diff] [blame] | 162 | </configuration> |