4de2fcc128
* Add event.CallerSkipFrame(skip int) This indicates that, for this event, we should skip an additional specified number of frames. This is cumulative, calling it twice for the same event will add both numbers together, and this is in addition to any skip frame settings set through the context, or globally. The indended purpose is for wrappers to Msg or Msgf, so that the actual caller is always printed correctly. * Use CallerSkipFrame for Print, Printf, and Write. This allows us to use the correct caller when using these 3 functions. Co-authored-by: Zephaniah E. Loss-Cutler-Hull <warp@aehallh.com> |
||
---|---|---|
.. | ||
log_example_test.go | ||
log.go |