rstudio / platform-lib

Shared Go Libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Explore Debug Logging without DI

jonyoder opened this issue · comments

We should explore options for using debug loggers without requiring dependency injection.

  • Provide easier way for Connect/RSPM to use debug logging in their code that both teams will like

Update: Currently, we're leaning towards eliminating the global state in this library. Each application that uses the library can decide how to instantiate loggers and whether to store them as globals or use DI.