Am 2017-12-01 um 10:09 schrieb Oleg Kalnichevski:
Folks

It is going to be unpleasant but we need to revisit a highly
contentious issue of the choice of a logging APIs for HttpClient 5.0.

I personally like Log4J2 and generally am a satisfied user of the
toolkit. However, Log4J2 logging facade APIs did accumulate a lot of
stuff that in my opinion should not have been there in the first place.
  This bothers me.

A more immediate problem with Log4J2, though, is that its logging APIs
do not play nicely with Android. Whether or not this is Log4J2 fault is
not for me to say but presently HttpClient 5.0 is incompatible with
Android due to its dependency on Log4J2 logging APIs. It is also
unclear whether this incompatibility could be resolved and when. See LO
G4J2-2133 [1] for details.
At this point while HttpClient 5.0 is still ALPHA we could switch to
SLF4J and personally think we should. Log4J2 would still be the
preferred and the default toolkit for HttpClient 5.0 though the logging
interface would be SLF4J, not Log4J2 logging APIs.

Please share your thoughts.

Have checked the JIRA issue on this and it seems to gain some traction. Moreover on core-libs-dev@openjdk has some discussion about it that Google might/will fix this for d8?

For the sake of backwards-compat and less headache, I'd switch to SLF4J. One can still use Log4J2 backend.

As for SLF4J 1.8. I don't see HC 5.0 to switch to it to maintain binary compat.

Michael


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

Reply via email to