GitHub user sruehl edited a comment on the discussion: [Java] How should we 
handle "loggers"?

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.
Recently in golang I moved to this pattern out of 3 reasons:

1. Have more control over the context
2. Easier way to configure them
3. Being able to assign those log statements to the relevant tests

Point 3 becomes painfully important once you move into async territory

So I would vote for having them instance bound.

GitHub link: 
https://github.com/apache/plc4x/discussions/973#discussioncomment-6068466

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to