Repository: samza
Updated Branches:
  refs/heads/master 9e8107ea7 -> 5a2a28316


SAMZA-872: remove DailyRollingAppender from doc


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

Branch: refs/heads/master
Commit: 5a2a28316e66bcae25468654c78575987c9c6b78
Parents: 9e8107e
Author: Branislav Cogic <b.co...@levi9.com>
Authored: Fri Feb 19 10:23:52 2016 -0800
Committer: Yi Pan (Data Infrastructure) <nickpa...@gmail.com>
Committed: Fri Feb 19 10:23:52 2016 -0800

----------------------------------------------------------------------
 docs/learn/documentation/versioned/jobs/logging.md | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/samza/blob/5a2a2831/docs/learn/documentation/versioned/jobs/logging.md
----------------------------------------------------------------------
diff --git a/docs/learn/documentation/versioned/jobs/logging.md 
b/docs/learn/documentation/versioned/jobs/logging.md
index caca43f..0340710 100644
--- a/docs/learn/documentation/versioned/jobs/logging.md
+++ b/docs/learn/documentation/versioned/jobs/logging.md
@@ -62,12 +62,13 @@ Likewise, [run-am.sh](packaging.html) sets:
 -Dsamza.container.name=samza-application-master
 {% endhighlight %}
 
-These settings are very useful if you're using a file-based appender. For 
example, you can use a daily rolling appender by configuring log4j.xml like 
this:
+These settings are very useful if you're using a file-based appender. For 
example, you can use a rolling appender to separate log file when it reaches 
certain size by configuring log4j.xml like this:
 
 {% highlight xml %}
-<appender name="RollingAppender" 
class="org.apache.log4j.DailyRollingFileAppender">
+<appender name="RollingAppender" class="org.apache.log4j.RollingFileAppender">
    <param name="File" value="${samza.log.dir}/${samza.container.name}.log" />
-   <param name="DatePattern" value="'.'yyyy-MM-dd" />
+   <param name="MaxFileSize" value="256MB" />
+   <param name="MaxBackupIndex" value="20" />
    <layout class="org.apache.log4j.PatternLayout">
     <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] 
%m%n" />
    </layout>

Reply via email to