summaryrefslogtreecommitdiffstats
path: root/ResmanagementService/service
diff options
context:
space:
mode:
authorluxin <luxin7@huawei.com>2018-03-14 17:43:26 +0800
committerluxin <luxin7@huawei.com>2018-03-14 17:43:26 +0800
commit9ad8e060bbac2d63f6840102216af844267b660c (patch)
tree3c7e91ab110f572a423a211798e9679194715178 /ResmanagementService/service
parentddcce25a0df3be8a3c2ce76fadc2bdef3af330ab (diff)
Specify the output path of log
Change-Id: Icfae31f3626a781d14d88f37343dda6056416dfc Issue-ID: VFC-816 Signed-off-by: luxin <luxin7@huawei.com>
Diffstat (limited to 'ResmanagementService/service')
-rw-r--r--ResmanagementService/service/src/main/resources/log4j.properties7
1 files changed, 6 insertions, 1 deletions
diff --git a/ResmanagementService/service/src/main/resources/log4j.properties b/ResmanagementService/service/src/main/resources/log4j.properties
index d371d16..5b888fc 100644
--- a/ResmanagementService/service/src/main/resources/log4j.properties
+++ b/ResmanagementService/service/src/main/resources/log4j.properties
@@ -15,7 +15,12 @@
###############################################################################
log4j.rootLogger=INFO,root
log4j.appender.root.Append=true
-log4j.appender.root.File=${catalina.base}/logs/resmanagement.log
+
+#Log Directory
+logDir=/var/log/onap
+componentName=resmanagement
+log4j.appender.root.File=${logDir}/${componentName}/resmanagement.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