Files
gocryptotrader/log/custom_log_hooks_test.go
Ryan O'Hara-Reid db59b8540e log: allow external definition of log handling (#1561)
* poc

* linter: fix

---------

Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
2024-07-19 10:10:27 +10:00

12 lines
221 B
Go

package log
import "testing"
func TestSetCustomLoghook(t *testing.T) {
t.Parallel()
logHook := func(_ string, _ string, _ ...interface{}) (bypassLibraryLogSystem bool) {
return false
}
SetCustomLogHook(logHook)
}