Skip to content

skip stack records#131

Closed
luigi-riefolo wants to merge 1 commit into
inconshreveable:v2from
luigi-riefolo:skip-stack-records
Closed

skip stack records#131
luigi-riefolo wants to merge 1 commit into
inconshreveable:v2from
luigi-riefolo:skip-stack-records

Conversation

@luigi-riefolo

Copy link
Copy Markdown

The current implementation of CallerStackHandler does not offer an option for skipping trace records from the logging message.

This change introduces a new function arguments skip, which can be used as an index for skipping unwanted trace records starting from the most recent ones.

The new argument is particularly useful if the log15 functionalities are wrapped into a custom function or the user is implementing the log15 interface.

@xgfone

xgfone commented Aug 31, 2017

Copy link
Copy Markdown

@luigi-riefolo Hi, I created a PR to allow the user to customize the stack depth to skip. See #128

@luigi-riefolo

Copy link
Copy Markdown
Author

closing as duplicate

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

Successfully merging this pull request may close these issues.

2 participants