EYBlockchain / timber

Construct a Merkle Tree database from Ethereum logs.
Other
67 stars 19 forks source link

feat: logging added #30

Closed Westlad closed 3 years ago

Westlad commented 3 years ago

Timber currently uses console.log for logging output. This PR replaces that with a Winston logger and allows selection of logging levels via the environment variable LOG_LEVEL (default info). Acceptable log levels are: error; warn; info;http; verbose; debug; silly.

iAmMichaelConnor commented 3 years ago

Fixes #20

Westlad commented 3 years ago

logger.warn is one down from Error. I use it when Timber says it can't find something but has a way to generate it, e.g. missing leaves.

github-actions[bot] commented 3 years ago

:tada: This PR is included in version 3.1.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: