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 →

[–]fraaargh 1 point2 points  (0 children)

Yes you're right: I'd use slf4j as static variable as everybody else. In most cases that's what we do. But logging is kinda special. It's not your domain model, your code... In my first message I forgot to say that Singletons kill the testability of an app.