mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
dev: reference all the debug keys and env vars (#3196)
This commit is contained in:
parent
091d2f4324
commit
19a338706a
30 changed files with 169 additions and 76 deletions
|
@ -14,18 +14,18 @@ type Log interface {
|
|||
type LogLevel int
|
||||
|
||||
const (
|
||||
// Debug messages, write to debug logs only by logutils.Debug.
|
||||
// LogLevelDebug Debug messages, write to debug logs only by logutils.Debug.
|
||||
LogLevelDebug LogLevel = 0
|
||||
|
||||
// Information messages, don't write too many messages,
|
||||
// LogLevelInfo Information messages, don't write too many messages,
|
||||
// only useful ones: they are shown when running with -v.
|
||||
LogLevelInfo LogLevel = 1
|
||||
|
||||
// Hidden errors: non-critical errors: work can be continued, no need to fail whole program;
|
||||
// LogLevelWarn Hidden errors: non-critical errors: work can be continued, no need to fail whole program;
|
||||
// tests will crash if any warning occurred.
|
||||
LogLevelWarn LogLevel = 2
|
||||
|
||||
// Only not hidden from user errors: whole program failing, usually
|
||||
// LogLevelError Only not hidden from user errors: whole program failing, usually
|
||||
// error logging happens in 1-2 places: in the "main" function.
|
||||
LogLevelError LogLevel = 3
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue