From d195247248622408480e9f853127c354724c1b78 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 27 Dec 2017 10:27:24 +0530 Subject: Fix log4j properties file Issue-ID: CLI-66 Change-Id: I3e4e34b3f4b78d1948dcb0dc96efba31dbcb65da Signed-off-by: Kanagaraj Manickam k00365106 --- framework/src/main/resources/log4j.properties | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'framework/src/main/resources/log4j.properties') 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 -- cgit 1.2.3-korg