aboutsummaryrefslogtreecommitdiffstats
path: root/ONAP-PDP-REST/src/main
diff options
context:
space:
mode:
authorChou, Joseph (JC2555) <jc2555@att.com>2018-04-02 14:11:34 -0400
committerPamela Dragosh <pdragosh@research.att.com>2018-04-03 14:24:50 +0000
commit80cbbc8710292ae08437daa6e3390cc0190e3139 (patch)
treea23f07b06617c33c96ee41568b9422c252997549 /ONAP-PDP-REST/src/main
parentdef1c29d8a8c4372e006b1388a456bca92d57500 (diff)
ONAP log files consolidation
Check in changes for pap,pdp,console,brmsgw,paplp and pdplp Change-Id: I23525a44e0f269d04d9870c3eed18b6b8daacb2c Issue-ID: POLICY-562 Signed-off-by: Chou, Joseph (JC2555) <jc2555@att.com>
Diffstat (limited to 'ONAP-PDP-REST/src/main')
-rw-r--r--ONAP-PDP-REST/src/main/resources/log4j.properties6
-rw-r--r--ONAP-PDP-REST/src/main/resources/logback.xml12
2 files changed, 9 insertions, 9 deletions
diff --git a/ONAP-PDP-REST/src/main/resources/log4j.properties b/ONAP-PDP-REST/src/main/resources/log4j.properties
index 6e5cfac93..925d2ea84 100644
--- a/ONAP-PDP-REST/src/main/resources/log4j.properties
+++ b/ONAP-PDP-REST/src/main/resources/log4j.properties
@@ -28,7 +28,7 @@ log4j.rootLogger=INFO, FILE
# FILE appender
log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.FILE.File=${catalina.base}/logs/pdp-rest.log
+log4j.appender.FILE.File=${POLICY_LOGS}/policy/pdpx/pdp-rest.log
log4j.appender.FILE.ImmediateFlush=true
log4j.appender.FILE.Threshold=debug
log4j.appender.FILE.append=true
@@ -47,7 +47,7 @@ log4j.appender.FILE.layout.ConversionPattern=%d{yyyy-MM-dd'T'HH:mm:ss}{GMT+0}+00
log4j.logger.xacml.request=INFO, REQUEST_LOG
log4j.appender.REQUEST_LOG=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.REQUEST_LOG.File=${catalina.base}/logs/pdp-rest-reqres.log
+log4j.appender.REQUEST_LOG.File=${POLICY_LOGS}/policy/pdpx/pdp-rest-reqres.log
log4j.appender.REQUEST_LOG.ImmediateFlush=true
log4j.appender.REQUEST_LOG.Threshold=debug
log4j.appender.REQUEST_LOG.append=true
@@ -63,7 +63,7 @@ log4j.logger.auditLogger=INFO,AUDIT_LOG
log4j.additivity.auditLogger=false
log4j.appender.AUDIT_LOG=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.AUDIT_LOG.File=${catalina.base}/logs/audit.log
+log4j.appender.AUDIT_LOG.File=${POLICY_LOGS}/policy/pdpx/audit.log
log4j.appender.AUDIT_LOG.Append=true
log4j.appender.AUDIT_LOG.DatePattern='.'yyyy-MM-dd
log4j.appender.AUDIT_LOG.threshold=INFO
diff --git a/ONAP-PDP-REST/src/main/resources/logback.xml b/ONAP-PDP-REST/src/main/resources/logback.xml
index 677b0d0d7..abcebff3f 100644
--- a/ONAP-PDP-REST/src/main/resources/logback.xml
+++ b/ONAP-PDP-REST/src/main/resources/logback.xml
@@ -21,15 +21,15 @@
<configuration scan="true" scanPeriod="3 seconds" debug="true">
<!--<jmxConfigurator /> -->
<!-- directory path for all other type logs -->
- <property name="logDir" value="logs" />
+ <property name="logDir" value="${POLICY_LOGS}" />
<!-- directory path for debugging type logs -->
- <property name="debugDir" value="logs" />
+ <property name="debugDir" value="${POLICY_LOGS}" />
<!-- specify the component name
<ONAP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" -->
- <property name="componentName" value="Policy"></property>
- <property name="subComponentName" value="ONAP-PDP-REST"></property>
+ <property name="componentName" value="policy"></property>
+ <property name="subComponentName" value="pdpx"></property>
<!-- log file names -->
<property name="errorLogName" value="error" />
@@ -83,8 +83,8 @@
<property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" />
-->
- <property name="logDirectory" value="${catalina.base}/${logDir}/${componentName}/${subComponentName}" />
- <property name="debugLogDirectory" value="${catalina.base}/${debugDir}/${componentName}/${subComponentName}" />
+ <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" />
+ <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" />