blob: 6e5cfac93af6231edbe322154ee613fa92fe751d [file] [log] [blame]
Guo Ruijing073cc182017-07-31 08:47:35 +00001###
2# ============LICENSE_START=======================================================
3# ONAP-PDP-REST
4# ================================================================================
5# Copyright (C) 2017 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
21#
22# Use this properties for Deployments.
23#
24#
25# Set root logger level to DEBUG and its only appender to FILE.
26#log4j.rootLogger=DEBUG, FILE, CONSOLE
27log4j.rootLogger=INFO, FILE
28
29# FILE appender
30log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender
Chou, Joseph (JC2555)5cd57942018-03-28 13:46:11 -040031log4j.appender.FILE.File=${catalina.base}/logs/pdp-rest.log
Guo Ruijing073cc182017-07-31 08:47:35 +000032log4j.appender.FILE.ImmediateFlush=true
33log4j.appender.FILE.Threshold=debug
34log4j.appender.FILE.append=true
35log4j.appender.FILE.DatePattern='.'yyyy-MM-dd
36log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
37log4j.appender.FILE.layout.ConversionPattern=%d{yyyy-MM-dd'T'HH:mm:ss}{GMT+0}+00:00|%X{requestId}|%X{serviceInstanceId}|%t|%X{serverName}|%X{serviceName}|%X{instanceUuid}|%p|%X{severity}|%X{serverIpAddress}|%X{server}|%X{clientIpAddress}|%l||%m%n
38
39# for Developments and Debugging
40#log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
41#log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
42#log4j.appender.CONSOLE.layout.ConversionPattern=%d{yyyy_MM_dd_HH_mm_ss_SSS} [%t] %-5p %l- %m%n
43
44#
45# This is specifically for Xacml request/response logging
46#
47log4j.logger.xacml.request=INFO, REQUEST_LOG
48
49log4j.appender.REQUEST_LOG=org.apache.log4j.DailyRollingFileAppender
Chou, Joseph (JC2555)5cd57942018-03-28 13:46:11 -040050log4j.appender.REQUEST_LOG.File=${catalina.base}/logs/pdp-rest-reqres.log
Guo Ruijing073cc182017-07-31 08:47:35 +000051log4j.appender.REQUEST_LOG.ImmediateFlush=true
52log4j.appender.REQUEST_LOG.Threshold=debug
53log4j.appender.REQUEST_LOG.append=true
54log4j.appender.REQUEST_LOG.DatePattern='.'yyyy-MM-dd
55
56log4j.appender.REQUEST_LOG.layout=org.apache.log4j.PatternLayout
57log4j.appender.REQUEST_LOG.layout.ConversionPattern=%d{yyyy_MM_dd_HH_mm_ss_SSS} %m%n
58
59#
60# audit (transaction) logging
61#
62log4j.logger.auditLogger=INFO,AUDIT_LOG
63log4j.additivity.auditLogger=false
64
65log4j.appender.AUDIT_LOG=org.apache.log4j.DailyRollingFileAppender
Chou, Joseph (JC2555)5cd57942018-03-28 13:46:11 -040066log4j.appender.AUDIT_LOG.File=${catalina.base}/logs/audit.log
Guo Ruijing073cc182017-07-31 08:47:35 +000067log4j.appender.AUDIT_LOG.Append=true
68log4j.appender.AUDIT_LOG.DatePattern='.'yyyy-MM-dd
69log4j.appender.AUDIT_LOG.threshold=INFO
70log4j.appender.AUDIT_LOG.layout=org.apache.log4j.EnhancedPatternLayout
71log4j.appender.AUDIT_LOG.layout.ConversionPattern=%d{yyyy-MM-dd'T'HH:mm:ss}{GMT+0}+00:00|%X{requestId}|%X{serviceInstanceId}|%t|%X{serverName}|%X{serviceName}|%X{instanceUuid}|%p|%X{severity}|%X{serverIpAddress}|%X{server}|%X{clientIpAddress}|%X{className}|%X{timer}|%m%n