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

Method Stack

event.go:488–493  ·  view source on GitHub ↗

Stack enables stack trace printing for the error passed to Err(). ErrorStackMarshaler must be set for this method to do something.

()

Source from the content-addressed store, hash-verified

486//
487// ErrorStackMarshaler must be set for this method to do something.
488func (e *Event) Stack() *Event {
489 if e != nil {
490 e.stack = true
491 }
492 return e
493}
494
495// Ctx adds the Go Context to the *Event context. The context is not rendered
496// in the output message, but is available to hooks and to Func() calls via the

Calls

no outgoing calls