Repository: samza
Updated Branches:
  refs/heads/master 1f77f8b98 -> 538a18cdf


SAMZA-695: updated the StreamAppender doc


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

Branch: refs/heads/master
Commit: 538a18cdfb5f0f557e8628e95d629b26af4d02a1
Parents: 1f77f8b
Author: Aleksandar Pejakovic <[email protected]>
Authored: Mon Aug 24 11:10:37 2015 -0400
Committer: Yan Fang <[email protected]>
Committed: Mon Aug 24 11:10:37 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/samza/blob/538a18cd/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 d1b372c..a3bb054 100644
--- a/docs/learn/documentation/versioned/jobs/logging.md
+++ b/docs/learn/documentation/versioned/jobs/logging.md
@@ -97,10 +97,12 @@ And then updating your log4j.xml to include the appender:
 
 #### Stream Log4j Appender
 
-Samza provides a StreamAppender to publish the logs into a specific system. 
You can specify the system name using "task.log4j.system". If there is only one 
system in the config, Samza will use that system for the log publishing. Also 
we have the [MDC](http://logback.qos.ch/manual/mdc.html) keys "containerName", 
"jobName" and "jobId", which help identify the source of the log. In order to 
use this appender, simply add:
+Samza provides a StreamAppender to publish the logs into a specific system. 
You can specify the system name using "task.log4j.system" and change name of 
log stream with param 'StreamName'. If there is only one system in the config, 
Samza will use that system for the log publishing. Also we have the 
[MDC](http://logback.qos.ch/manual/mdc.html) keys "containerName", "jobName" 
and "jobId", which help identify the source of the log. In order to use this 
appender, simply add:
 
 {% highlight xml %}
 <appender name="StreamAppender" 
class="org.apache.samza.logging.log4j.StreamAppender">
+   <!-- optional -->
+   <param name="StreamName" value="EpicStreamName"/>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%X{containerName} %X{jobName} 
%X{jobId} %d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n" />
    </layout>

Reply via email to