microsoft/retina

Remove the Global Logger

Open

#585 aperta il 7 ago 2024

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Go (293 fork)auto 404
good first issuehelp wantedlang/gopriority/2scope/Stype/enhancement

Metriche repository

Star
 (3161 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

We currently have a global logger in retinacmd.Logger. There's never a need for a global logger, and it inhibits the proper use of "child loggers", where certain contextual information is injected into scope-limited logger instances (helping to ensure consistent logging without overhead). We should remove the global logger and inject it in every instance.

Guida contributor