The stdlib's Logger class has a .exception() method that is basically .error(..., exc_info=True). When porting an existing application that used logger.exception("oops something went wrong") in many exception handlers, all this code had to be updated to logger.error("oops...", exc_info=True).
Since the whole point of structlog.stdlib.BoundLogger is that it emulates the stdlib's Logger API, would you consider adding an .exception() method?
The stdlib's
Loggerclass has a.exception()method that is basically.error(..., exc_info=True). When porting an existing application that usedlogger.exception("oops something went wrong")in many exception handlers, all this code had to be updated tologger.error("oops...", exc_info=True).Since the whole point of
structlog.stdlib.BoundLoggeris that it emulates the stdlib'sLoggerAPI, would you consider adding an.exception()method?