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

Added SetLevel & SetLevelScoped #20

Merged
merged 2 commits into from
Jul 12, 2021
Merged

Added SetLevel & SetLevelScoped #20

merged 2 commits into from
Jul 12, 2021

Conversation

applejag
Copy link
Contributor

This allows users to change the logging level globally or on a per-scope basis.

To disable all GIN-debug logs, you would run:

logger.SetLevelScoped(logger.LevelSilence, "GIN-debug")

@applejag applejag added the enhancement New feature or request label Jul 12, 2021
@applejag applejag self-assigned this Jul 12, 2021
@applejag applejag added this to In progress in Backlog via automation Jul 12, 2021
pkg/logger/mock.go Outdated Show resolved Hide resolved
pkg/logger/mock.go Outdated Show resolved Hide resolved
pkg/logger/mock.go Outdated Show resolved Hide resolved
pkg/logger/logger.go Outdated Show resolved Hide resolved
Backlog automation moved this from In progress to Review in progress Jul 12, 2021
Backlog automation moved this from Review in progress to Reviewer approved Jul 12, 2021
@applejag applejag merged commit 1ec1b2b into master Jul 12, 2021
Backlog automation moved this from Reviewer approved to Done Jul 12, 2021
@applejag applejag deleted the feature/set-level branch July 12, 2021 16:40
@applejag applejag mentioned this pull request Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants