Skip to content

Commit

Permalink
GODRIVER-2891 Add documentation for log levels (#1312)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
Co-authored-by: Matt Dale <9760375+matthewdale@users.noreply.github.com>
  • Loading branch information
3 people authored and qingyang-hu committed Aug 1, 2023
1 parent 8857a04 commit afb5419
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mongo/options/loggeroptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ type LogSink interface {
// Info logs a non-error message with the given key/value pairs. This
// method will only be called if the provided level has been defined
// for a component in the LoggerOptions.
//
// Here are the following level mappings for V = "Verbosity":
//
// - V(0): off
// - V(1): informational
// - V(2): debugging
//
// This level mapping is taken from the go-logr/logr library
// specifications, specifically:
//
// "Level V(0) is the default, and logger.V(0).Info() has the same
// meaning as logger.Info()."
Info(level int, message string, keysAndValues ...interface{})

// Error logs an error message with the given key/value pairs
Expand Down

0 comments on commit afb5419

Please sign in to comment.