You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2017/08/30 16:40:00 UTC
[31/52] [abbrv] oodt git commit: Update log4j config.
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/master
Commit: 3fb76606a7f03e29626644ace73a0520f0deeaad
Parents: b357f4b
Author: Chris Mattmann <ma...@apache.org>
Authored: Fri Jul 14 20:46:27 2017 -0700
Committer: Chris Mattmann <ma...@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">