Skip to content

Migrate from logback to log4j2 (because of bad security policy?) #1728

@sbernard31

Description

@sbernard31

We currently use SLF4J API in our library
And for our unit tests and demos we need to use a concrete implementation.
Currently we are using logback.

Logback Security Policy concerns

But we faced several time situation where logback was affected by security issue and maintainer refuse to back-port small and simple fix to old branches... :

I have concern with that kind of policy which consist by forcing users to :

  • either upgrade to more recent version of logback (and so force to increase the minimal java requirement)
  • or fix that on their own and so maintain their own custom version of logback...
  • or pay for a news release ...

Bad feeling about maintainer

Deleting comments
It's up to maintainer to decide their security policy but in practise this doesn't really fit our needs.
I try to explain that with a comment on an issue and maintainer decide to delete my comment... 🤦
Image

Refuse(not encourage) contribution
Another point, some users propose to help to back-port vulnerability fix and he refused because of "lack of time"

It does not seem to be in the best interests of the community...

Migrate to log4j2 ?

So is there a good alternative ? It seems that log4j2 is a really mature project.

  • ✔️ It seems to have a better Security Policy.
  • ✔️ This is a community project (several contributors) where logback is a one man project.
  • ✔️ log4j2 seems to be more conservative regarding minimal java version requirement (8 for log4j2 vs 11 for logback)
  • ✔️ It seems that performance is now better for log4j2.
  • ❌ the only drawback the jar size around 2Mo for log4j2 against ~1Mo for logback.

So I think we should consider to migrate ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionDiscussion about anything

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions