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

: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

: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
8 of 9 checks passed
@jarifibrahim jarifibrahim deleted the apoorv/add-leveled-logging branch Apr 13, 2020
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.

None yet

3 participants