aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main/resources/log4j.properties
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-12-27 10:27:24 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-12-27 10:32:44 +0530
commitd195247248622408480e9f853127c354724c1b78 (patch)
treee8d969c4b5f669610c38985b51c2e5df2cc158fb /framework/src/main/resources/log4j.properties
parentdf20c73d6c5693ac1cb720b67ad5b1731a8c6104 (diff)
Fix log4j properties file
Issue-ID: CLI-66 Change-Id: I3e4e34b3f4b78d1948dcb0dc96efba31dbcb65da Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/main/resources/log4j.properties')
-rw-r--r--framework/src/main/resources/log4j.properties10
1 files changed, 9 insertions, 1 deletions
diff --git a/framework/src/main/resources/log4j.properties b/framework/src/main/resources/log4j.properties
index d27b1d60..7cfc25d3 100644
--- a/framework/src/main/resources/log4j.properties
+++ b/framework/src/main/resources/log4j.properties
@@ -1,4 +1,12 @@
-log4j.rootLogger=ALL, file
+log4j.rootLogger=ERROR, file
+
+log4j.logger.org.onap.cli=DEBUG, file
+
+# Direct log messages to stdout
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
# Redirect log messages to a log file, support file rolling.
log4j.appender.file=org.apache.log4j.RollingFileAppender