Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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.
327
func
(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
TestStdlib
Function · 0.80
indentJSON
Function · 0.80
TestLevel_String
Function · 0.80
TestMake
Function · 0.80
TestNoDriverValue
Function · 0.80
TestContextErrors
Function · 0.80
LogEntry
Method · 0.80
TestStackdriver
Function · 0.80
multiline
Function · 0.80
genMultiline
Function · 0.80
TestMake
Function · 0.80
LogEntry
Method · 0.80
Calls
no outgoing calls
Tested by
12
TestStdlib
Function · 0.64
indentJSON
Function · 0.64
TestLevel_String
Function · 0.64
TestMake
Function · 0.64
TestNoDriverValue
Function · 0.64
TestContextErrors
Function · 0.64
TestStackdriver
Function · 0.64
multiline
Function · 0.64
genMultiline
Function · 0.64
TestMake
Function · 0.64
TestEntry
Function · 0.64
TestContextErrorFormatting
Function · 0.64