ChainSafe / ChainSafe/gossamer
chore(maintainability): inject logger instead of using global loggers
Open
- Dominant language
- Go
- Stars
- 454
- Forks
- 144
- PR merge metrics
- No merged PRs in 30d
Description
## Issue summary
For now we derive global package local loggers from the global logger of the log package.
We should inject the logger to structures through constructors `New(logger *log.Logger)` such that it's easy to replace them and have parallel tests in the future (without all tests using the same global logger).
Contributor guide
Assessment
This issue has not been assessed yet.