Approach 1: Pros and Cons

  • Pro: Super simple and unambiguous
  • Con: All callers are tied to this specific logger
  • What if logging needs to change across the application?
  • You change the logger in one place
  • What if the logger needs to behave differently in different circumstances?
  • Doable. But requires a bit more work
  • This might be a good place for interfaces

23 / 27