MCPcopy Index your code
hub / github.com/coder/slog / String

Method String

slog.go:327–333  ·  view source on GitHub ↗

String implements fmt.Stringer.

()

Source from the content-addressed store, hash-verified

325
326// String implements fmt.Stringer.
327func (l Level) String() string {
328 s, ok := levelStrings[l]
329 if !ok {
330 return fmt.Sprintf("slog.Level(%v)", int(l))
331 }
332 return s
333}

Callers 15

TestStdlibFunction · 0.80
indentJSONFunction · 0.80
TestLevel_StringFunction · 0.80
TestMakeFunction · 0.80
TestNoDriverValueFunction · 0.80
TestContextErrorsFunction · 0.80
LogEntryMethod · 0.80
TestStackdriverFunction · 0.80
multilineFunction · 0.80
genMultilineFunction · 0.80
TestMakeFunction · 0.80
LogEntryMethod · 0.80

Calls

no outgoing calls

Tested by 12

TestStdlibFunction · 0.64
indentJSONFunction · 0.64
TestLevel_StringFunction · 0.64
TestMakeFunction · 0.64
TestNoDriverValueFunction · 0.64
TestContextErrorsFunction · 0.64
TestStackdriverFunction · 0.64
multilineFunction · 0.64
genMultilineFunction · 0.64
TestMakeFunction · 0.64
TestEntryFunction · 0.64