Preferred logging implementation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Preferred logging implementation

Andreas Beeker
Hi *,

we currently have a discussion on our logging implementation in POI [1].

Do you have any preference?
... also besides log4j2 / slf4j, but with integrating as a library in mind.

Sorry, if this kind of discussion is bothersome to you, as there's often a bridge x-to-y when it comes to logging -
but I thought decreasing the dependencies might be worth it.

Andi


[1] https://bz.apache.org/bugzilla/show_bug.cgi?id=63046

Reply | Threaded
Open this post in threaded view
|

Re: Preferred logging implementation

Tim Allison
Not at all bothersome...thank you for the ping!

Would POI actually ship with an implementation (e.g. log4j2) or only
with slf4j?  Our app now uses slf4j with a bridge to log4j.  At some
point -- Tika 2.0(?) -- we might upgrade to  log4j2, but I'd think
we'd want to keep slf4j.


On Mon, Jan 7, 2019 at 2:58 PM Andreas Beeker <[hidden email]> wrote:

>
> Hi *,
>
> we currently have a discussion on our logging implementation in POI [1].
>
> Do you have any preference?
> ... also besides log4j2 / slf4j, but with integrating as a library in mind.
>
> Sorry, if this kind of discussion is bothersome to you, as there's often a bridge x-to-y when it comes to logging -
> but I thought decreasing the dependencies might be worth it.
>
> Andi
>
>
> [1] https://bz.apache.org/bugzilla/show_bug.cgi?id=63046
>
Reply | Threaded
Open this post in threaded view
|

Re: Preferred logging implementation

Andreas Beeker
> Would POI actually ship with an implementation (e.g. log4j2) or only with slf4j?
I guess, in the src/bin bundles we need to provide everything you would need to get the library working -
if this is only the log4j2-api or slf4j, then we probably don't provide the implementation part.
But providing the src/bin bundles is only a leftover from the past, it's the dependency which counts.

> ... we might upgrade to log4j2, but I'd think we'd want to keep slf4j.
hm, ok ... I'm still undecided - would a log4j2 dependency coming with POI speed up things?

On one side our logging is quite basic and slf4j satisfies our needs -
on the other side, log4j2 is an Apache project and seems to be quite modern.