summaryrefslogtreecommitdiffstats
path: root/yang-compiler/src/main/resources/log4j.properties
diff options
context:
space:
mode:
Diffstat (limited to 'yang-compiler/src/main/resources/log4j.properties')
-rw-r--r--yang-compiler/src/main/resources/log4j.properties25
1 files changed, 25 insertions, 0 deletions
diff --git a/yang-compiler/src/main/resources/log4j.properties b/yang-compiler/src/main/resources/log4j.properties
new file mode 100644
index 0000000..7fae67c
--- /dev/null
+++ b/yang-compiler/src/main/resources/log4j.properties
@@ -0,0 +1,25 @@
+### settings###
+log4j.rootLogger = debug,stdout,D,E
+
+### output to console ###
+log4j.appender.stdout = org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target = System.out
+log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
+log4j.appender.stdout.Threshold = INFO
+log4j.appender.stdout.layout.ConversionPattern = [%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} %m%n
+### method:%l%n###
+### ??DEBUG ????????=logs/debug.log ###
+log4j.appender.D = org.apache.log4j.DailyRollingFileAppender
+log4j.appender.D.File = logs/debug.log
+log4j.appender.D.Append = true
+log4j.appender.D.Threshold = DEBUG
+log4j.appender.D.layout = org.apache.log4j.PatternLayout
+log4j.appender.D.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] %m%n
+
+### ??ERROR ????????=logs/error.log ###
+log4j.appender.E = org.apache.log4j.DailyRollingFileAppender
+log4j.appender.E.File = logs/error.log
+log4j.appender.E.Append = true
+log4j.appender.E.Threshold = ERROR
+log4j.appender.E.layout = org.apache.log4j.PatternLayout
+log4j.appender.E.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] %m%n