Caller adds the file:line of the caller with the zerolog.CallerFieldName key.
()
| 486 | |
| 487 | // Caller adds the file:line of the caller with the zerolog.CallerFieldName key. |
| 488 | func (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. |