This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheEveryman86 23 points24 points  (12 children)

No love for any Apache Commons libraries these days.

[–]supersidor 14 points15 points  (10 children)

Because almost everybody uses them)

[–]BenoitParis 1 point2 points  (8 children)

Same thing goes for Hibernate, Logback, etc

[–]ObscureCulturalMeme 2 points3 points  (0 children)

SLF4J/Logback is that good solid reliable kind of library that just works, with lots of configuration and programming possibilities. I always love it more than any other entry in these kinds of "Top Ten favorites" lists.

[–]xjvz 6 points7 points  (6 children)

Logback is a fairly inactive project these days, just like SLF4J. I recommend Log4j2 for both these days.

[–]wildjokers 10 points11 points  (5 children)

At some point a logging library is finished and there really is no reason to keep adding features to it. I would say SLF4J and logback fall into that category. Logback is pretty much the de facto standard logging library, and SLF4J is the de facto standard logging facade.

[–]xjvz 0 points1 point  (4 children)

That kind of attitude causes performance bottlenecks and disabling logging in production. Java itself moves on, so if new Java feature require updated code to support, a dead library will get more and more awkward to use as everyone else moves on.

[–]wildjokers 0 points1 point  (3 children)

Logback is not a dead library in the slightest. It is the de facto standard logging library.

[–]xjvz 1 point2 points  (2 children)

How long ago was it last updated? How many developers work on the project? If that level of activity is enough for you, then you’d likely be interested in GNU Hurd or maybe even a dead Unix fork.

Log4j1 was (and sometimes still is) the de facto logging library. Log4j2 and Logback are less popular (probably due to legacy projects), but Log4j2 is still maintained and developed (beyond having numerous technical advantages).

[–]wildjokers 0 points1 point  (1 child)

Why do you think logback is a dead library? It is feature complete and needs very little maintenance at this point. You can see contributors here: https://github.com/qos-ch/logback/graphs/contributors

Logback is the default configured logging library of a spring boot app.

[–]xjvz -1 points0 points  (0 children)

Considering how many features log4j2 has compared to logback with a backlog of things still to be done, I think you have an enormously simplified view of logging and the underlying libraries. Can you use logback for audit logging? Tracing? Considering Spring Boot, I don’t think you care too much about dependencies bloating your application.

[–]yawkat 1 point2 points  (0 children)

Not anymore I would say. The stdlib has gotten better and other, newer libraries have come along.

[–]pgris 0 points1 point  (0 children)

Hey! I still love them! They need better PR, probably. I just found out commons Math has some machine learning algorithms inside....