mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject [1/3] mahout git commit: MAHOUT-1522: Handle logging levels via log4j.xml
Date Tue, 31 Mar 2015 21:53:23 GMT
Repository: mahout
Updated Branches:
  refs/heads/master 57429b176 -> 0853c069f


MAHOUT-1522:  Handle logging levels via log4j.xml


Project: http://git-wip-us.apache.org/repos/asf/mahout/repo
Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/c0f44b79
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/c0f44b79
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/c0f44b79

Branch: refs/heads/master
Commit: c0f44b79ff735d8e9e95af46bbd6afcdb97cfe65
Parents: edec611
Author: Andrew Musselman <akm@apache.org>
Authored: Tue Mar 31 14:22:52 2015 -0700
Committer: Andrew Musselman <akm@apache.org>
Committed: Tue Mar 31 14:22:52 2015 -0700

----------------------------------------------------------------------
 src/conf/log4j.xml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mahout/blob/c0f44b79/src/conf/log4j.xml
----------------------------------------------------------------------
diff --git a/src/conf/log4j.xml b/src/conf/log4j.xml
new file mode 100644
index 0000000..6231b48
--- /dev/null
+++ b/src/conf/log4j.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+    <appender class="org.apache.log4j.ConsoleAppender" name="console">
+        <param value="System.err" name="target"/>
+        <layout class="org.apache.log4j.PatternLayout">
+            <param value="%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n" name="ConversionPattern"/>
+        </layout>
+    </appender>
+    <!-- Change the level below to adjust logging levels. -->
+    <root>
+        <level value="info"/>
+        <appender-ref ref="console"/>
+    </root>
+</log4j:configuration>
\ No newline at end of file


Mime
View raw message