From 084dbc547cbccc21ab4e6ba6195447653a7d4331 Mon Sep 17 00:00:00 2001 From: Hai Liu Date: Wed, 20 Apr 2016 16:15:03 +0800 Subject: confg log4j JIRA:PREDICTION-45 Change-Id: Ieee1a5a2aa2ef5b11635f324e611f46f8882f692 --- src/log4j.properties | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/log4j.properties diff --git a/src/log4j.properties b/src/log4j.properties new file mode 100644 index 0000000..797baca --- /dev/null +++ b/src/log4j.properties @@ -0,0 +1,17 @@ +log4j.appender.consoleAppender = org.apache.log4j.ConsoleAppender +log4j.appender.rollingFile = org.apache.log4j.RollingFileAppender +log4j.appender.rollingFile.File = T1.log +log4j.appender.rollingFile.MaxFileSize = 10MB +log4j.appender.rollingFile.MaxBackupIndex = 5 + +log4j.appender.consoleAppender.layout = org.apache.log4j.PatternLayout +log4j.appender.consoleAppender.layout.ConversionPattern = %d %-6r [%t] %-5p %-90l - %m%n +log4j.appender.rollingFile.layout = org.apache.log4j.PatternLayout +log4j.appender.rollingFile.layout.ConversionPattern = %d %-6r [%t] %-5p %-90l - %m%n + +#log4j.rootLogger = TRACE, consoleAppender, rollingFile +log4j.rootLogger = DEBUG, consoleAppender, rollingFile +#log4j.rootLogger = INFO, consoleAppender, rollingFile +#log4j.rootLogger = WARN, consoleAppender, rollingFile +#log4j.rootLogger = TRACE, rollingFile + -- cgit 1.2.3-korg