Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

feat: add extra={'stack': True} support for logbook handler #1228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shidenggui
Copy link

In logging handler, we can use extra={'stack': True} argument on log method to capture a stack trace, but that argument misses in logbook handler.

# If you don't have an exception, but still want to capture a
# stacktrace, use the `stack` arg
logger.error('There was an error, with a stacktrace!', extra={
    'stack': True,
})

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

Successfully merging this pull request may close these issues.

None yet

1 participant