Replies: 4 comments 8 replies
-
And here ... even the Slf4j folks no longer recommend any general way of doing things: https://www.slf4j.org/faq.html#declared_static |
Beta Was this translation helpful? Give feedback.
-
With the up-rise of structured loggers, context became more relevant. So with that in mind it is pretty helpful to have loggers enriched and pass it down to the downstream objects which enrich them by themselfs with their context variables.
Point 3 becomes painfully important once you move into async territory So I would vote for having them instance bound. |
Beta Was this translation helpful? Give feedback.
-
Would be awesome, if we could see who voted how :-/ |
Beta Was this translation helpful? Give feedback.
-
I would suggest for Java to use the notation I voted for "log" |
Beta Was this translation helpful? Give feedback.
-
When going through our code, I've noticed that we have different ways of defining our loggers. I think it would be cool, if we could decide on one.
In general there are two ways to declare the loggers:
However usually static variables are all uppercase, but I'm also seeing some static loggers named as local variables.
5 votes ·
Beta Was this translation helpful? Give feedback.
All reactions