[
http://mifosforge.jira.com/browse/MIFOS-2680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57523#action_57523
]
Dhanushka kottegoda commented on MIFOS-2680:
--------------------------------------------
It a good idea to use Logging API such as SLF4J or Commons - logging instead of
concrete implementation such as Log4J, following section contain small
comparison about logging APIs.
SLF4J
Relatively newest API than Commons -logging API , does not contains classes
loading issues that available with some of the older versions of Commons
-logging API . Also some of the project moving to use SLF4J API , (e.g -
Hibernate [1] ) from Commons -logging . In SLF4J need to have two artifacts
SLF4J API and and particular binding such as SLF4J-binding-for-LOG4J etc. In
Maven build system this will reflect to have two dependencies. Also SLF4J
statically binding a concrete logging implementation to an abstract API , and
compulsory to have a concrete binding, otherwise the code will fail.
Further SLF4J is very promising about it's future and support very important
features like MDC [2] . This [4] document provide summary of SLF4J features.
Commons -logging
Relatively old and lot of projects still use as a standard API, Main criticism
is it's class loading issue mentioned in this article [3]. As I read this issue
is related to older versions all of the latest versions have eliminated this
issue. This document provide some usage of commons logging [5] . Commons
-logging use dynamic discovery approach, if there is no any concrete logging
implementation available it fall back to use Java Uitl.logging.
[1] - http://opensource.atlassian.com/projects/hibernate/browse/HHH-2696
[2] - http://logback.qos.ch/manual/mdc.html
[3] - http://articles.qos.ch/classloader.html
[4] - http://www.slf4j.org/manual.html
[5] - http://wiki.apache.org/commons/Commons_Logging_FUD
> Eliminate MifosLogManager entirely and instead use Log4j directly
> -----------------------------------------------------------------
>
> Key: MIFOS-2680
> URL: http://mifosforge.jira.com/browse/MIFOS-2680
> Project: mifos
> Issue Type: Improvement
> Components: Logging
> Affects Versions: Unscheduled
> Reporter: Udai Gupta
> Assignee: Dhanushka kottegoda
> Fix For: Unscheduled
>
> Attachments: logging-patch.txt, loging-patch-2.txt
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues