logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikael Ståldal <mikael.stal...@magine.com>
Subject Re: Version 2 outreach?
Date Mon, 17 Aug 2015 08:40:31 GMT
It's OK if a library uses SLF4J properly. However, some libraries (even
Apache ones) uses SLF4J improperly by having a mandatory dependency on a
specific implementation (logj4 1 or logback) in their project. Such as


This is very unfortunately since Zookeeper is a dependency for quite a lot
of other projects, and causes quite a lot of headache if you want to use
Log4j 2 (you have to exclude dependencies). There is an old JIRA ticket for
it, but it has not been prioritized:

On Sat, Aug 15, 2015 at 2:27 AM, Ralph Goers <ralph.goers@dslextreme.com>

> Gary,
> Do you have something in mind?  While not hard, it is a fair amount of
> work for an application to switch to a different logging API. Granted, it
> is mostly just changing the call to get a Logger. But most applications
> should also take advantage of the new parameter syntax as well.
> What was your experience with projects upgrading to commons lang3 vs
> commons lang?  I know quite a few people are still using commons httpclient
> vs the new version, and that has been around a lot longer than Log4j 2.
> What I really hope is that we stopped projects from switching from log4j 1
> to logback, although I am aware that many projects are using slf4j instead
> and letting their customers choose.  Frankly, if I hadn’t found limitations
> (such as the ability to use Messages) in SLF4J I would have used that as
> the API for Log4j 2 (I am quite happy we didn’t).
> Ralph
> On Aug 14, 2015, at 2:34 PM, Gary Gregory <garydgregory@gmail.com> wrote:
> Something to think about after we get 2.4 out the door...
> Do you think it appropriate for us to do some kind of outreach to other
> Apache projects and say "hey, about about use log4j 2?"
> Gary
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory

[image: MagineTV]

*Mikael Ståldal*
Senior backend developer

*Magine TV*
Regeringsgatan 25  | 111 53 Stockholm, Sweden  |   www.magine.com

Privileged and/or Confidential Information may be contained in this
message. If you are not the addressee indicated in this message
(or responsible for delivery of the message to such a person), you may not
copy or deliver this message to anyone. In such case,
you should destroy this message and kindly notify the sender by reply

View raw message