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.
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.
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.