Hacker News new | past | comments | ask | show | jobs | submit login

structlog



You always need some boilerplate to get structlog working. I always use this (author) to have the needed defaults https://github.com/peakiq/logma.


Yeah, it exists

But IMO it inherited most of loggers problems while not offering a better interface

It is basically a kwargs to json or 'key=value' converter

(Also json logs are overrated. There I said it. Especially one key per line, please don't)


They're quite powerful if you aggregate in a tool like Splunk, ES, or GCloud logging.

You need good quality logs though. Because noisy useless JSON logs are even more noisy and useless.

Agreed on the one key per line bit.


agreed. one key per line is straight up madness. in general, your logs should not go out of their way to break grep.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: