MCPcopy
hub / github.com/rs/zerolog / MarshalZerologObject

Method MarshalZerologObject

error_marshal_test.go:14–19  ·  view source on GitHub ↗
(e *Event)

Source from the content-addressed store, hash-verified

12}
13
14func (l loggableError) MarshalZerologObject(e *Event) {
15 if l.error == nil {
16 return
17 }
18 e.Str("l", strings.ToUpper(l.error.Error()))
19}
20
21type nonLoggableError struct {
22 error

Callers

nothing calls this directly

Calls 2

StrMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected