You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2025. It is now read-only.
Current logger package needs to be initialised before using. This increase some complexity when writing unit test.
Not only every test case need to initialize logger, but also when background task is running while main test problem is terminating and finalize logger, it might cause unexpected problem of logger not initialised.
If logger can be default send to stdout, then it provides two benefits:
no need to setup logger for ever test
when ever unit test error, with go test -v shows details message of process, facilitate easier debugging