MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / MustName

Method MustName

config/log.go:152–158  ·  view source on GitHub ↗

MustName Convert the int level to the string representation and panics if the name is not valid.

()

Source from the content-addressed store, hash-verified

150
151// MustName Convert the int level to the string representation and panics if the name is not valid.
152func (level LogLevel) MustName() LogLevelString {
153 name, err := level.Name()
154 if err != nil {
155 panic(err)
156 }
157 return name
158}
159
160// String Convert the int level to the string representation. Panics if the level is not valid.
161func (level LogLevel) String() string {

Callers 2

StringMethod · 0.95
TestLogLevelFilteringFunction · 0.45

Calls 1

NameMethod · 0.95

Tested by 1

TestLogLevelFilteringFunction · 0.36