Skip to content
This repository was archived by the owner on Feb 22, 2025. It is now read-only.
This repository was archived by the owner on Feb 22, 2025. It is now read-only.

Reduce logger.Initialise when writing unite test #148

Open
@jamieabc

Description

@jamieabc

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions