From d5870cc26dcebe612728fa7730f82d54704cc38a Mon Sep 17 00:00:00 2001 From: luxin Date: Wed, 14 Mar 2018 17:58:20 +0800 Subject: Specify the output path of log Change-Id: Ic11f340483129beb6c650404fd35c4d2fa2275f1 Issue-ID: VFC-816 Signed-off-by: luxin --- .../service/src/main/resources/log4j.properties | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'huawei/vnfmadapter/VnfmadapterService') 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 -- cgit 1.2.3-korg