GitHub user mihir6692 opened a pull request:

    https://github.com/apache/spark/pull/12697

    [SPARK-14754][CORE] Metrics as logs are not coming through slf4j

    ## What changes were proposed in this pull request?
    
    Two changes need to be done : 
    1) Slf4jsink.scala 
            Added class name for logging. (Reference : 
https://dropwizard.github.io/metrics/3.1.0/manual/core/#man-core-reporters-slf4j
 )
    
    2) log4j.properties.template
            Added log configuration in log4j.properties.template for in support 
of above changes.
    
    ## How was this patch tested?
    
    It is tested with manual testing. I build spark with make-distribution.sh 
and then tried few example job to print Metrics in log files.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mihir6692/spark master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12697.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12697
    
----
commit 12d896c9d9b326c8539d11376c1d28187a343057
Author: mihir6692 <[email protected]>
Date:   2016-04-26T08:25:45Z

    [SPARK-14754][CORE]Metrics as logs are not coming through slf4j

commit 5a437a12fb0c6cfdd7119d63bebc3f3f2c935d5f
Author: mihir6692 <[email protected]>
Date:   2016-04-26T08:27:26Z

    [SPARK-14754][CORE]Metrics as logs are not coming through slf4j

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to