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

Allow SetLevel to set a level that mutes all logs (not just up to Fatal) #145

Open
tonglil opened this issue Sep 16, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@tonglil
Copy link

tonglil commented Sep 16, 2024

Is your feature request related to a problem? Please describe.
I want to be able to call SetLevel and turn off all logging for the logger.

Describe the solution you'd like
SetLevel(level.Off) or documented method of doing this.

Describe alternatives you've considered
I've looked through godocs and issues and cannot find a way to do this with the keywords: off, noop, disable, all

Additional context
n/a

@tonglil tonglil added the enhancement New feature or request label Sep 16, 2024
@aymanbagabas
Copy link
Member

You could use Level(math.MaxInt)

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
None yet
Development

No branches or pull requests

2 participants