Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coder/slog
/ Error
Function
Error
slog.go:245–247 ·
view source on GitHub ↗
Error is the standard key used for logging a Go error value.
(err error)
Source
from the content-addressed store, hash-verified
243
244
// Error is the standard key used for logging a Go error value.
245
func
Error(err error) Field {
246
return
F(
"error"
, err)
247
}
248
249
type
fieldsKey
struct
{}
250
Callers
1
encodeJSON
Function · 0.70
Calls
1
F
Function · 0.85
Tested by
no test coverage detected