diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-10-03 17:44:52 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-10-03 17:44:52 +0530 |
commit | f2b21b10732d743a5a0940d6565aa18b643f6604 (patch) | |
tree | 74047c98d73f9ee4d69222fa09645dc8ec0e0178 /framework/src | |
parent | c51d7e1fd1c4500cae7a692ff68b37001db78fdd (diff) |
Set log file under ONAP_CLI_HOME/logs
CLI-2
Change-Id: I65585cb69fe7ba71b57bf338cdc87b926a9bac51
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src')
-rw-r--r-- | framework/src/main/resources/log4j.properties | 11 |
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 |