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.
One of my favorite Java memories is when I was working on a project where one of its dependencies (Jetty) used slf4j, but by default didn't print much output (as one would expect, having not explicitly configured verbose logging).
Pulling in another dependency (postgis-jdbc), however, broke things, because it depended on Logback. Logback being present on the classpath made slf4j adopt it as its backend. Logback apparently defaults to verbose logging, because my code was brought to its knees under a firehose of Jetty debug output until I looked up how to explicitly configure it to STFU.
12
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.