thrasher-corp / gocryptotrader

A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.
MIT License
2.99k stars 802 forks source link

log: allow external definition of log handling #1561

Closed shazbert closed 2 months ago

shazbert commented 4 months ago

PR Description

Allows the logger system to be completely bypassed by a hook while maintaining existing features. This allows clients to define their own independent logger implementations for their specific purpose and/or infrastructure.

Type of change

Please delete options that are not relevant and add an x in [] as item is complete.

How has this been tested

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration and also consider improving test coverage whilst working on a certain feature or package.

Checklist