aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/main/resources')
-rw-r--r--framework/src/main/resources/log4j.properties11
1 files changed, 9 insertions, 2 deletions
diff --git a/framework/src/main/resources/log4j.properties b/framework/src/main/resources/log4j.properties
index b7fe5437..fdb74039 100644
--- a/framework/src/main/resources/log4j.properties
+++ b/framework/src/main/resources/log4j.properties
@@ -1,2 +1,9 @@
-log4j.rootLogger=off, FileNetNullAppender
-log4j.appender.FileNetNullAppender=org.apache.log4j.varia.NullAppender \ No newline at end of file
+log4j.rootLogger=DEBUG, file
+
+# Redirect log messages to a log file, support file rolling.
+log4j.appender.file=org.apache.log4j.RollingFileAppender
+log4j.appender.file.File=${ONAP_CLI_HOME}/logs/oclip.log
+log4j.appender.file.MaxFileSize=5MB
+log4j.appender.file.MaxBackupIndex=10
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n \ No newline at end of file