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