Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • One option is to use the Decorator pattern for the loggers - you create a transparent wrapper that logs around relevant operations, then instead of your regular instances, you inject wrapped instances. Commented Aug 15, 2023 at 14:48
  • 1
    Does this answer your question? Should I use a global logging variable? Commented Aug 15, 2023 at 15:07
  • Does this answer your question? Should I use a global logging variable? Commented Aug 15, 2023 at 17:05
  • You might want to review: web.archive.org/web/20120826171609/http://… Commented Aug 15, 2023 at 22:42
  • Welcome. The question in its current state looks like a "poll-style question", which is likely to be closed. Express the question part differently. Commented Aug 17, 2023 at 9:30