MCPcopy 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.
245func Error(err error) Field {
246 return F("error", err)
247}
248
249type fieldsKey struct{}
250

Callers 1

encodeJSONFunction · 0.70

Calls 1

FFunction · 0.85

Tested by

no test coverage detected