JSON Logging

Python JSON Logging

Use-case It’s very common for projects to do JSON logging if you are working with third-party tools or open-source projects like Logstash to process your logs. These tools usually need more complex filtering on the structured data, so using JSON is preferred there. We also wanted to integrate with a third-party tool at work and we needed to add the JSON formatting logs in our projects. I will not go into the details of why or why not you should decide JSON logging, as each approach will have it’s pros and cons....

September 14, 2022 · 3 min · 484 words · Amin