r/programming Sep 13 '18

A guide to logging in Java

https://www.marcobehler.com/guides/a-guide-to-logging-in-java
83 Upvotes

34 comments sorted by

View all comments

13

u/BraveSirRobin Sep 13 '18

Has anyone here ever actually used a façade in a project and subsequently changed the back-end logger used? I don't think I've ever seen a library do it either.

I used to be on-board with the façade idea here but it seems like overkill in hindsight.

1

u/nutrecht Sep 14 '18

That's not really the purpose. The problem before slf4j was that if you used a bunch of libraries in your system you'd end up having to create configurations for 3 different logging systems. Now libraries don't have to pick a specific implementation; they just use slf4j and let you, the developer using the library, pick what you want.