charmbracelet / charmbracelet/log

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

Open
#145 1 comment 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
3.4k
Forks
103
PR merge metrics
No merged PRs in 30d

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.