We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8857a04 commit afb5419Copy full SHA for afb5419
mongo/options/loggeroptions.go
@@ -51,6 +51,18 @@ type LogSink interface {
51
// Info logs a non-error message with the given key/value pairs. This
52
// method will only be called if the provided level has been defined
53
// for a component in the LoggerOptions.
54
+ //
55
+ // Here are the following level mappings for V = "Verbosity":
56
57
+ // - V(0): off
58
+ // - V(1): informational
59
+ // - V(2): debugging
60
61
+ // This level mapping is taken from the go-logr/logr library
62
+ // specifications, specifically:
63
64
+ // "Level V(0) is the default, and logger.V(0).Info() has the same
65
+ // meaning as logger.Info()."
66
Info(level int, message string, keysAndValues ...interface{})
67
68
// Error logs an error message with the given key/value pairs
0 commit comments