summaryrefslogtreecommitdiffstats
path: root/huawei/vnfmadapter
diff options
context:
space:
mode:
authorluxin <luxin7@huawei.com>2018-03-14 17:58:20 +0800
committerluxin <luxin7@huawei.com>2018-03-14 17:58:20 +0800
commitd5870cc26dcebe612728fa7730f82d54704cc38a (patch)
tree87971d3005267b890e39703bf3950a90ea28554f /huawei/vnfmadapter
parent6a1ab5c0d06935c4e9eb6dfb75c7b984e8a76d78 (diff)
Specify the output path of log
Change-Id: Ic11f340483129beb6c650404fd35c4d2fa2275f1 Issue-ID: VFC-816 Signed-off-by: luxin <luxin7@huawei.com>
Diffstat (limited to 'huawei/vnfmadapter')
-rw-r--r--huawei/vnfmadapter/VnfmadapterService/service/src/main/resources/log4j.properties8
1 files changed, 7 insertions, 1 deletions
diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/main/resources/log4j.properties b/huawei/vnfmadapter/VnfmadapterService/service/src/main/resources/log4j.properties
index 833c7a77..195e9410 100644
--- a/huawei/vnfmadapter/VnfmadapterService/service/src/main/resources/log4j.properties
+++ b/huawei/vnfmadapter/VnfmadapterService/service/src/main/resources/log4j.properties
@@ -15,7 +15,13 @@
###############################################################################
log4j.rootLogger=INFO,root
log4j.appender.root.Append=true
-log4j.appender.root.File=${catalina.base}/logs/vnfmadapterservice.log
+
+#Log Directory
+logDir=/var/log/onap
+componentName=svnfmdriver
+subComponentName=huaweivnfmdriver
+log4j.appender.root.File=${logDir}/${componentName}/${subComponentName}/vnfmadapterservice.log
+
log4j.appender.root.layout.ConversionPattern=%d %-5p [%t][%X{moduleID}][%C %L] %m%n
log4j.appender.root.layout=org.apache.log4j.PatternLayout
log4j.appender.root.MaxBackupIndex=50