ChainSafe / ChainSafe/gossamer

chore(maintainability): inject logger instead of using global loggers

Open
#1,946 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.