Amit Saha 3/1/2017

QueueLogger and Python JSON Logger

Read Original

The article explains a problem where Python's QueueHandler, used for logging across multiple processes, strips exception traceback information, breaking JSON log formatting. It presents two solutions: modifying the python-json-logger to use an alternative attribute or subclassing QueueHandler with the tblib library to properly pickle and preserve traceback data for structured logging.

QueueLogger and Python JSON Logger

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser