microsoft/retina

Remove the Global Logger

Open

#585 ouverte le 7 août 2024

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Go (293 forks)auto 404
good first issuehelp wantedlang/gopriority/2scope/Stype/enhancement

Métriques du dépôt

Stars
 (3 161 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur