-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Support logging #21
Comments
Sure! I'll take a look later today. |
Can you test the latest master? :) |
Doesn't work for me.
|
However, if you add from better_exceptions import format_exception
my_formatter.formatException = lambda exc_info: format_exception(*exc_info) I haven't decided on the API yet since it appears the formatter function for exceptions is one of the few places in the standard Python API that accepts the typical triple of So either I break the API convention in If you have thoughts on how to approach custom formatters and the like, let me know. |
Python's logging module has the ability to output tracebacks alongside log messages if inside an exception context (
Logger.<level_method>(..., exc_info=True)
andLogger.exception(...)
).It would be great if better exceptions could also inject it's enhanced traceback rendering there.
The text was updated successfully, but these errors were encountered: