We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40d9024 commit 8ac6c33Copy full SHA for 8ac6c33
errors.go
@@ -44,6 +44,12 @@ type Logger interface {
44
Print(v ...interface{})
45
}
46
47
+// NopLogger is a nop implementation of the Logger interface.
48
+type NopLogger struct{}
49
+
50
+// Print implements Logger interface.
51
+func (nl *NopLogger) Print(_ ...interface{}) {}
52
53
// SetLogger is used to set the default logger for critical errors.
54
// The initial logger is os.Stderr.
55
func SetLogger(logger Logger) error {
0 commit comments