wearpants / twiggy

Pythonic logger, shipped in Redhat & Debian
BSD 3-Clause "New" or "Revised" License
47 stars 11 forks source link

Full tracebacks option #80

Open skipor opened 6 years ago

skipor commented 6 years ago

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.