Closed Riduidel closed 1 year ago
Should I return a logger.error
or a String.format
when they are missing ?
Also, should I return a logger.info
or a String.format
with the content is not empty?
When things are ok, there is no need to log anything
How to test loggers ? https://www.baeldung.com/junit-asserting-logs
See also https://github.com/neuland/assertj-logging (which would need a java.util.logging implementation)
This Stackoverflow answer may help https://stackoverflow.com/a/1834789/15619
This simple enhancer would check for each element some useful things
We should see with Simon Brown what would be interesting, and we should get more ideas from https://c4model.com/bingo/