oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattm...@apache.org
Subject [35/35] oodt git commit: Update log4j config.
Date Sat, 15 Jul 2017 03:47:17 GMT
Update log4j config.


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

Branch: refs/heads/feature/zookeeper-config
Commit: 3fb76606a7f03e29626644ace73a0520f0deeaad
Parents: b357f4b
Author: Chris Mattmann <mattmann@apache.org>
Authored: Fri Jul 14 20:46:27 2017 -0700
Committer: Chris Mattmann <mattmann@apache.org>
Committed: Fri Jul 14 20:46:27 2017 -0700

----------------------------------------------------------------------
 config/src/main/resources/etc/log4j.xml | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/oodt/blob/3fb76606/config/src/main/resources/etc/log4j.xml
----------------------------------------------------------------------
diff --git a/config/src/main/resources/etc/log4j.xml b/config/src/main/resources/etc/log4j.xml
index 1b3dbdf..17d6e8e 100644
--- a/config/src/main/resources/etc/log4j.xml
+++ b/config/src/main/resources/etc/log4j.xml
@@ -26,9 +26,20 @@
         </layout>
     </appender>
 
+    <appender name="file" class="org.apache.log4j.FileAppender">
+        <param name="file" value="logs/log.out"/>
+        <param name="immediateFlush" value="true"/>
+        <param name="threshold" value="debug"/>
+        <param name="append" value="false"/>
+        <layout class="org.apache.log4j.PatternLayout">
+            <param name="ConversionPattern" value="%-5p %c{1} - %m%n"/>
+        </layout>
+    </appender>
+
     <root>
         <priority value="DEBUG"/>
         <appender-ref ref="console"/>
+        <appender-ref ref="file"/>
     </root>
 
     <logger name="org.apache.zookeeper">


Mime
View raw message