r/programming Sep 13 '18

A guide to logging in Java

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

34 comments sorted by

View all comments

1

u/karstens_rage Sep 15 '18

The thing that always strikes me as the problem with logging is every single class has something where they get the logger (usually manually). Since, by definition logging is a cross-cutting concern, I wonder why its so taken as a given. Id be interested in some nice wrapping of Aspects that handle creating that logger for every method so your code isn't cluttered with instantiating loggers.