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

Add leveled logging #1249

Merged
merged 4 commits into from
Apr 13, 2020
Merged

Add leveled logging #1249

merged 4 commits into from
Apr 13, 2020

Conversation

vardhanapoorv
Copy link
Contributor

@vardhanapoorv vardhanapoorv commented Mar 5, 2020

Adding leveled logging in Badger.


This change is Reviewable

Copy link
Contributor

@jarifibrahim jarifibrahim left a comment

Choose a reason for hiding this comment

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

:lgtm:

Please update the PR description to explain why this change is necessary.

Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @ashish-goswami, @jarifibrahim, @manishrjain, and @vardhanapoorv)


options.go, line 214 at r1 (raw file):

//
// The default value of LoggingLevel is INFO.
func (opt Options) WithLoggingLevel(val int) Options {

Having a new type LoggingLevel would help the users to set the level easily. When a user is looking at this API, they wouldn't know what is the int value for DEBUG.

Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ashish-goswami and @vardhanapoorv)

@jarifibrahim jarifibrahim merged commit 4f6763c into master Apr 13, 2020
@jarifibrahim jarifibrahim deleted the apoorv/add-leveled-logging branch April 13, 2020 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants