aboutsummaryrefslogtreecommitdiffstats
path: root/PolicyEngineAPI
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 /PolicyEngineAPI
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 'PolicyEngineAPI')
-rw-r--r--PolicyEngineAPI/src/main/resources/log4j.properties14
-rw-r--r--PolicyEngineAPI/src/main/resources/logback.xml8
2 files changed, 11 insertions, 11 deletions
diff --git a/PolicyEngineAPI/src/main/resources/log4j.properties b/PolicyEngineAPI/src/main/resources/log4j.properties
index 83a68a767..d6787bd27 100644
--- a/PolicyEngineAPI/src/main/resources/log4j.properties
+++ b/PolicyEngineAPI/src/main/resources/log4j.properties
@@ -29,7 +29,7 @@ log4j.rootLogger=INFO, FILE
log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender
# Set the name of the file
-log4j.appender.FILE.File=policyEngineLog.log
+log4j.appender.FILE.File=${POLICY_LOGS}/policy/engineapi/policyEngineLog.log
# Set the immediate flush to true (default)
log4j.appender.FILE.ImmediateFlush=true
@@ -48,9 +48,9 @@ log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%d{yyyy_MM_dd_HH_mm_ss_SSS} [%t] %-5p %l- %m%n
# For AstraGW feature.
-log4j.appender.astra=org.apache.log4j.FileAppender
-log4j.appender.astra.File=astragw.log
-log4j.appender.astra.layout=org.apache.log4j.PatternLayout
-log4j.appender.astra.layout.ConversionPattern=%d{yyyy_MM_dd_HH_mm_ss_SSS} [%t] %-5p %l- %m%n
-log4j.category.astraLogger=TRACE, astra
-log4j.additivity.astraLogger=false
+#log4j.appender.astra=org.apache.log4j.FileAppender
+#log4j.appender.astra.File=${POLICY_LOGS}/policy/astragw/astragw.log
+#log4j.appender.astra.layout=org.apache.log4j.PatternLayout
+#log4j.appender.astra.layout.ConversionPattern=%d{yyyy_MM_dd_HH_mm_ss_SSS} [%t] %-5p %l- %m%n
+#log4j.category.astraLogger=TRACE, astra
+#log4j.additivity.astraLogger=false
diff --git a/PolicyEngineAPI/src/main/resources/logback.xml b/PolicyEngineAPI/src/main/resources/logback.xml
index 347466bcc..37261edd7 100644
--- a/PolicyEngineAPI/src/main/resources/logback.xml
+++ b/PolicyEngineAPI/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="PolicyEngineAPI"></property>
+ <property name="componentName" value="policy"></property>
+ <property name="subComponentName" value="policyapi"></property>
<!-- log file names -->
<property name="errorLogName" value="error" />