mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 23:16:54 +00:00
log: allow external definition of log handling (#1561)
* poc * linter: fix --------- Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
This commit is contained in:
11
log/custom_log_hooks_test.go
Normal file
11
log/custom_log_hooks_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package log
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestSetCustomLoghook(t *testing.T) {
|
||||
t.Parallel()
|
||||
logHook := func(_ string, _ string, _ ...interface{}) (bypassLibraryLogSystem bool) {
|
||||
return false
|
||||
}
|
||||
SetCustomLogHook(logHook)
|
||||
}
|
||||
Reference in New Issue
Block a user