I am trying to log messages in Python in a structured JSON format. When I investigated the available options I found some of the below. However, I found multiple blogs suggesting using the inbuilt logging module with a custom JSON formatter is sufficient.
As all these options just logging the message in a JSON format, I am just thinking that the advantage of using third party library is that if there any standards change then upgrading the library version should be sufficient with out change in the code. Please advise.
- Inbuilt logging module
- python-json-logger
- json-logging
- Loguru
- Structlog