8000 add depth/skip for Caller() · Issue #98 · rs/zerolog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add depth/skip for Caller() #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
junfengye opened this issue Aug 23, 2018 · 1 comment
Closed

add depth/skip for Caller() #98

junfengye opened this issue Aug 23, 2018 · 1 comment

Comments

@junfengye
Copy link

we need to set caller skip manually instead of setting the global CallerSkipFrameCount.

something like this:

func (c Context) Caller(skip int32) Context
rs pushed a commit that referenced this issue Mar 5, 2019
Add the ability to skip a specified number of stack frames
on a per context basis. Before this toe CallerSkipFrameCount
could only be set globally.
@mikeyrcamp
Copy link
Contributor

@rs could you possibly cut a 1.13.0 release with this change in it? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0