Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GODRIVER-2891 Add documentation for log levels #1312

Merged
merged 5 commits into from
Jul 20, 2023

Conversation

prestonvasquez
Copy link
Collaborator

GODRIVER-2891

Summary

Add documentation for the level mappings propagated by the internal library to the user-defined LogSink. Clarify that the level returned is not intended to be 1-1 with the optional level enumeration used to construct a logger on a client.

Background & Motivation

The documentation team ran into an issue when attempting to compare the optional log levels to those returned by the "Info" method in a custom log sink. See here for a detailed example.

mongo/options/loggeroptions.go Outdated Show resolved Hide resolved
Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@matthewdale matthewdale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with a few suggestions 👍

mongo/options/loggeroptions.go Outdated Show resolved Hide resolved
mongo/options/loggeroptions.go Outdated Show resolved Hide resolved
mongo/options/loggeroptions.go Outdated Show resolved Hide resolved
@prestonvasquez prestonvasquez requested a review from a team as a code owner July 19, 2023 18:58
@matthewdale matthewdale removed the request for review from a team July 19, 2023 20:44
@prestonvasquez prestonvasquez merged commit ecd5980 into mongodb:master Jul 20, 2023
@prestonvasquez prestonvasquez deleted the GODRIVER-2891 branch July 20, 2023 15:27
qingyang-hu pushed a commit that referenced this pull request Aug 1, 2023
Co-authored-by: Steven Silvester <[email protected]>
Co-authored-by: Matt Dale <[email protected]>
prestonvasquez added a commit to prestonvasquez/mongo-go-driver that referenced this pull request Aug 1, 2023
prestonvasquez added a commit to prestonvasquez/mongo-go-driver that referenced this pull request Aug 1, 2023
prestonvasquez added a commit to prestonvasquez/mongo-go-driver that referenced this pull request Aug 1, 2023
prestonvasquez added a commit to prestonvasquez/mongo-go-driver that referenced this pull request Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants