summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHai Liu <hai.liu@huawei.com>2016-04-20 16:15:03 +0800
committerHai Liu <hai.liu@huawei.com>2016-04-20 16:15:03 +0800
commit084dbc547cbccc21ab4e6ba6195447653a7d4331 (patch)
tree3280e637a2faeba8f285b2c37005e5f7e17bb893 /src
parent9f71917d9e283195424fce4427508cc85bb36d22 (diff)
confg log4j
JIRA:PREDICTION-45 Change-Id: Ieee1a5a2aa2ef5b11635f324e611f46f8882f692
Diffstat (limited to 'src')
-rw-r--r--src/log4j.properties17
1 files changed, 17 insertions, 0 deletions
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
+