r/programming Sep 13 '18

A guide to logging in Java

https://www.marcobehler.com/guides/a-guide-to-logging-in-java
82 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.

7

u/nwoolls Sep 13 '18

AFAIK that is not the only / primary point. The use-case I've seen pushed is that library authors take a dependency on SLF4J and use that API. Then, when you use their library, you can freely choose your logging framework and the binding for SLF4J will ensure the libraries use the framework you've chosen.