blob: d728f2d40fc1ec2365b83b7f72c12bda7bb3b962 [file] [log] [blame]
Guo Ruijing073cc182017-07-31 08:47:35 +00001###
2# ============LICENSE_START=======================================================
3# ONAP-PAP-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)80cbbc82018-04-02 14:11:34 -040031log4j.appender.FILE.File=${POLICY_LOGS}/policy/pap/pap-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)80cbbc82018-04-02 14:11:34 -040050log4j.appender.REQUEST_LOG.File=${POLICY_LOGS}/policy/pap/pap-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)80cbbc82018-04-02 14:11:34 -040066log4j.appender.AUDIT_LOG.File=${POLICY_LOGS}/policy/pap/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