blob: 40d18d1574522e1b399d07d18f668b0b771da061 [file] [log] [blame]
Dan Timoneyb80471e2020-03-24 14:30:24 -04001 #-
2 # ============LICENSE_START=======================================================
3 # ONAP - CCSDK
4 # ================================================================================
5 # Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
6 # ================================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 # http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END=========================================================
19 #
20
21property.logDir = ${sys:LOG_PATH:-./target}
22
23property.pattern = %d{ISO8601} | %-5p | %-16t | %-32c{1} | %X{currentGraph} - %X{nodeId} | %m%n
24
25#default mdc values
26property.ServiceName = INTERNAL
27property.ErrorCode = 900
28property.ErrorDesc = UnknownError
29
30rootLogger.level = INFO
31rootLogger.appenderRef.AppFile.ref = AppFile
32rootLogger.appenderRef.Console.ref = Console
33rootLogger.appenderRef.DebugFile.ref = DebugFile
34rootLogger.appenderRef.ErrorFile.ref = ErrorFile
35rootLogger.appenderRef.Console.filter.threshold.type = ThresholdFilter
36rootLogger.appenderRef.Console.filter.threshold.level = DEBUG
37
38appender.console.type = Console
39appender.console.name = Console
40appender.console.layout.type = PatternLayout
41appender.console.layout.pattern = ${pattern}
42
43appender.app.type = RollingRandomAccessFile
44appender.app.name = AppFile
45appender.app.fileName = ${logDir}/app.log
46appender.app.filePattern = ${logDir}/app.log.%i
47appender.app.immediateFlush = true
48appender.app.append = true
49appender.app.layout.type = PatternLayout
50appender.app.layout.pattern = ${pattern}
51appender.app.policies.type = Policies
52appender.app.policies.size.type = SizeBasedTriggeringPolicy
53appender.app.policies.size.size = 10MB
54appender.app.strategy.type = DefaultRolloverStrategy
55appender.app.strategy.max = 100
56appender.app.strategy.fileIndex = min
57
58appender.debug.type = RollingRandomAccessFile
59appender.debug.name = DebugFile
60appender.debug.fileName = ${logDir}/debug.log
61appender.debug.filePattern = ${logDir}/debug.log.%i
62appender.debug.immediateFlush = true
63appender.debug.append = true
64appender.debug.layout.type = PatternLayout
65appender.debug.layout.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%-16.16t|%-5.5p|%-32.32c{1}|%X{currentGraph} - %X{nodeId}|%m%n
66appender.debug.policies.type = Policies
67appender.debug.policies.size.type = SizeBasedTriggeringPolicy
68appender.debug.policies.size.size = 10MB
69appender.debug.strategy.type = DefaultRolloverStrategy
70appender.debug.strategy.max = 200
71appender.debug.strategy.fileIndex = min
72
73appender.error.type = RollingRandomAccessFile
74appender.error.name = ErrorFile
75appender.error.fileName = ${logDir}/error.log
76appender.error.filePattern = ${logDir}/error.log.%i
77appender.error.immediateFlush = true
78appender.error.append = true
79appender.error.layout.type = PatternLayout
80appender.error.layout.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%-16.16t|$${ctx:ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%p|$${ctx:ErrorCode}|$${ctx:ErrorDesc}|%m%n
81
82appender.error.policies.type = Policies
83appender.error.policies.size.type = SizeBasedTriggeringPolicy
84appender.error.policies.size.size = 10MB
85appender.error.strategy.type = DefaultRolloverStrategy
86appender.error.strategy.max = 100
87appender.error.strategy.fileIndex = min
88appender.error.filter.threshold.type = ThresholdFilter
89appender.error.filter.threshold.level = WARN
90
91appender.metric.type = RollingRandomAccessFile
92appender.metric.name = MetricFile
93appender.metric.fileName = ${logDir}/metric.log
94appender.metric.filePattern = ${logDir}/metric.log.%i
95appender.metric.immediateFlush = true
96appender.metric.append = true
97appender.metric.layout.type = PatternLayout
98appender.metric.layout.pattern=%X{InvokeTimestamp}|%X{LogTimestamp}|%X{RequestID}|%X{ServiceInstanceID}|%-16.16t|%X{ServerFQDN}|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceID}|%p|%X{Severity}|192.168.23.111|%X{ElapsedTime}|${hostName}|%X{ClientIPAddress}|%C{1}|||%X{TargetElement}|%markerSimpleName|%X|%X{currentGraph} - %X{nodeId}||%m%n
99appender.metric.policies.type = Policies
100appender.metric.policies.size.type = SizeBasedTriggeringPolicy
101appender.metric.policies.size.size = 10MB
102appender.metric.strategy.type = DefaultRolloverStrategy
103appender.metric.strategy.max = 100
104appender.metric.strategy.fileIndex = min
105
106appender.audit.type = RollingRandomAccessFile
107appender.audit.name = AuditFile
108appender.audit.fileName = ${logDir}/audit.log
109appender.audit.filePattern = ${logDir}/audit.log.%i
110appender.audit.immediateFlush = true
111appender.audit.append = true
112appender.audit.layout.type = PatternLayout
113appender.audit.layout.pattern=%X{EntryTimestamp}|%X{LogTimestamp}|%X{RequestID}|%X{ServiceInstanceID}|%-16.16t|%X{ServerFQDN}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDesc}|%X{InstanceID}|INFO|%X{Severity}|192.168.23.111|%X{ElapsedTime}|${hostName}|%X{ClientIPAddress}|%C{1}|%X{AUDIT-Unused}|%X{AUDIT-ProcessKey}|%markerSimpleName|%X|||%m%n
114appender.audit.policies.type = Policies
115appender.audit.policies.size.type = SizeBasedTriggeringPolicy
116appender.audit.policies.size.size = 10MB
117appender.audit.strategy.type = DefaultRolloverStrategy
118appender.audit.strategy.max = 200
119appender.audit.strategy.fileIndex = min
120
121appender.rr.name = RequestResponseFile
122appender.rr.type = RollingRandomAccessFile
123appender.rr.fileName = ${logDir}/request-response.log
124appender.rr.filePattern = ${logDir}/request-response.log.%i
125appender.rr.immediateFlush = true
126appender.rr.append = true
127appender.rr.layout.type = PatternLayout
128appender.rr.layout.pattern = %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}|%X{RequestID}|%X{PartnerName}|%m%n
129appender.rr.policies.type = Policies
130appender.rr.policies.size.type = SizeBasedTriggeringPolicy
131appender.rr.policies.size.size = 10MB
132appender.rr.strategy.type = DefaultRolloverStrategy
133appender.rr.strategy.max = 100
134appender.rr.strategy.fileIndex = min
135
136logger.metric.name = org.onap.ccsdk.sli.core.filters.metric
137logger.metric.level = INFO
138logger.metric.additivity = false
139logger.metric.appenderRef.MetricFile.ref = MetricFile
140
141logger.metric2.name = org.onap.logging.filter.base.AbstractMetricLogFilter
142logger.metric2.level = INFO
143logger.metric2.additivity = false
144logger.metric2.appenderRef.MetricFile.ref = MetricFile
145
146logger.audit.name = org.onap.logging.filter.base.AbstractAuditLogFilter
147logger.audit.level = INFO
148logger.audit.additivity = false
149logger.audit.appenderRef.AuditFile.ref = AuditFile
150
151logger.rr.name = org.onap.logging.filter.base.PayloadLoggingServletFilter
152logger.rr.level = INFO
153logger.rr.additivity = false
154logger.rr.appenderRef.RequestResponseFile.ref = RequestResponseFile
155
156logger.ccsdk.name = org.onap.ccsdk
157logger.ccsdk.level = DEBUG
158
159logger.onaplogging.name = org.onap.logging
160logger.onaplogging.level = DEBUG