Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 1 | ### |
| 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 |
| 27 | log4j.rootLogger=INFO, FILE |
| 28 | |
| 29 | # FILE appender |
| 30 | log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender |
Chou, Joseph (JC2555) | 5cd5794 | 2018-03-28 13:46:11 -0400 | [diff] [blame] | 31 | log4j.appender.FILE.File=${catalina.base}/logs/pdp-rest.log |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 32 | log4j.appender.FILE.ImmediateFlush=true |
| 33 | log4j.appender.FILE.Threshold=debug |
| 34 | log4j.appender.FILE.append=true |
| 35 | log4j.appender.FILE.DatePattern='.'yyyy-MM-dd |
| 36 | log4j.appender.FILE.layout=org.apache.log4j.PatternLayout |
| 37 | log4j.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 | # |
| 47 | log4j.logger.xacml.request=INFO, REQUEST_LOG |
| 48 | |
| 49 | log4j.appender.REQUEST_LOG=org.apache.log4j.DailyRollingFileAppender |
Chou, Joseph (JC2555) | 5cd5794 | 2018-03-28 13:46:11 -0400 | [diff] [blame] | 50 | log4j.appender.REQUEST_LOG.File=${catalina.base}/logs/pdp-rest-reqres.log |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 51 | log4j.appender.REQUEST_LOG.ImmediateFlush=true |
| 52 | log4j.appender.REQUEST_LOG.Threshold=debug |
| 53 | log4j.appender.REQUEST_LOG.append=true |
| 54 | log4j.appender.REQUEST_LOG.DatePattern='.'yyyy-MM-dd |
| 55 | |
| 56 | log4j.appender.REQUEST_LOG.layout=org.apache.log4j.PatternLayout |
| 57 | log4j.appender.REQUEST_LOG.layout.ConversionPattern=%d{yyyy_MM_dd_HH_mm_ss_SSS} %m%n |
| 58 | |
| 59 | # |
| 60 | # audit (transaction) logging |
| 61 | # |
| 62 | log4j.logger.auditLogger=INFO,AUDIT_LOG |
| 63 | log4j.additivity.auditLogger=false |
| 64 | |
| 65 | log4j.appender.AUDIT_LOG=org.apache.log4j.DailyRollingFileAppender |
Chou, Joseph (JC2555) | 5cd5794 | 2018-03-28 13:46:11 -0400 | [diff] [blame] | 66 | log4j.appender.AUDIT_LOG.File=${catalina.base}/logs/audit.log |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 67 | log4j.appender.AUDIT_LOG.Append=true |
| 68 | log4j.appender.AUDIT_LOG.DatePattern='.'yyyy-MM-dd |
| 69 | log4j.appender.AUDIT_LOG.threshold=INFO |
| 70 | log4j.appender.AUDIT_LOG.layout=org.apache.log4j.EnhancedPatternLayout |
| 71 | log4j.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 |