CallerSkipFrame instructs any future Caller calls to skip the specified number of frames. This includes those added via hooks from the context.
(skip int)
| 845 | // CallerSkipFrame instructs any future Caller calls to skip the specified number of frames. |
| 846 | // This includes those added via hooks from the context. |
| 847 | func (e *Event) CallerSkipFrame(skip int) *Event { |
| 848 | if e == nil { |
| 849 | return e |
| 850 | } |
| 851 | e.skipFrame += skip |
| 852 | return e |
| 853 | } |
| 854 | |
| 855 | // Caller adds the file:line of the caller with the zerolog.CallerFieldName key. |
| 856 | // The argument skip is the number of stack frames to ascend |
no outgoing calls