zmoog / public-notes

Apache License 2.0
0 stars 1 forks source link

Figure out how to write structured logs in Python #71

Open zmoog opened 5 months ago

zmoog commented 5 months ago

I am writing a Discord bot and I want run it as a container. I also want to log using structured logs.

What's the best way to produce structure logs in Python?

zmoog commented 5 months ago

More than one search engine is pushing me towards the structlog package. Often they recommend the same blog post from NewRelic https://newrelic.com/blog/how-to-relic/python-structured-logging

zmoog commented 5 months ago

Reading list: