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

Method Caller

context.go:488–491  ·  view source on GitHub ↗

Caller adds the file:line of the caller with the zerolog.CallerFieldName key.

()

Source from the content-addressed store, hash-verified

486
487// Caller adds the file:line of the caller with the zerolog.CallerFieldName key.
488func (c Context) Caller() Context {
489 c.l = c.l.Hook(ch)
490 return c
491}
492
493// CallerWithSkipFrameCount adds the file:line of the caller with the zerolog.CallerFieldName key.
494// The specified skipFrameCount int will override the global CallerSkipFrameCount for this context's respective logger.

Callers

nothing calls this directly

Calls 1

HookMethod · 0.80

Tested by

no test coverage detected