Currently, logger with trace() option prints standart exception traceback.
But sometimes, it's better to see full exception trace, that contains frames before try/except block. Or see the traceback, even there is no exception at all.
What about to add trace(trace='full') option, that prints such "full" traceback, instead usuall one?
Here is nice 'full_trace' function that returns such trace string.
Also, it would be nice to have 'full_error_trace=True' option, that forces add full tracebacks when there trace='error' option is set.
Currently, logger with
trace()
option prints standart exception traceback. But sometimes, it's better to see full exception trace, that contains frames beforetry/except
block. Or see the traceback, even there is no exception at all. What about to addtrace(trace='full')
option, that prints such "full" traceback, instead usuall one? Here is nice 'full_trace' function that returns such trace string.Also, it would be nice to have 'full_error_trace=True' option, that forces add full tracebacks when there
trace='error'
option is set.