MCPcopy
hub / github.com/CodisLabs/codis / SetLevelString

Method SetLevelString

pkg/utils/log/log.go:167–175  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

165}
166
167func (l *Logger) SetLevelString(s string) bool {
168 var v LogLevel
169 if !v.ParseFromString(s) {
170 return false
171 } else {
172 l.SetLevel(v)
173 return true
174 }
175}
176
177func (l *Logger) SetTraceLevel(v LogLevel) {
178 l.trace.Set(v)

Callers 7

SetLevelStringFunction · 0.80
LogLevelMethod · 0.80
LogLevelMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 2

ParseFromStringMethod · 0.95
SetLevelMethod · 0.95

Tested by

no test coverage detected