You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Himanshu Gahlaut (JIRA)" <ji...@apache.org> on 2015/03/27 22:00:53 UTC

[jira] [Commented] (LENS-459) Consistent use of logging frameworks

    [ https://issues.apache.org/jira/browse/LENS-459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14384644#comment-14384644 ] 

Himanshu Gahlaut commented on LENS-459:
---------------------------------------

In favour of Slf4j:

(1) Slf4j has parametrized logging which improves code readability as compared to code guard logging of commons logging
(2) Slf4j supports Mapped Diagnostic Context. As far as I know commons-logging does not have MDC support.
(3) Logback natively speaks Slf4j. Not sure if logback works well with commons-logging. Logback has many new features like:   (a) Auto archival of logs (b) Auto reload of conf files (c) Auto removal of old files (d) Environment based conditional processing (e) Stack traces with pacakaged jar version numbers. (f)  Sifting Appender (g) Filters... and many more. 

In my experience which might be limited, all new applications which I have seen use logback and logback strongly recommends using Slf4j.

> Consistent use of logging frameworks
> ------------------------------------
>
>                 Key: LENS-459
>                 URL: https://issues.apache.org/jira/browse/LENS-459
>             Project: Apache Lens
>          Issue Type: Sub-task
>            Reporter: Jaideep Dhok
>
> Choose either SLF4J or Commons Logging and use it everywhere in the code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)