How to use structlog with logfmt formatted logs in python?
I want to print out root logs in logfmt
format. structlog
also should print logs in the same format. I tried this example for JSON format and looks like it doesn’t work with logfmt
.
Are passed structlog loggers process-safe?
I want to use structlog
in a multiprocess application in python. The processes shall be able to log as well. Hence I need to ensure that writes to any I/O are process-safe.
Python standard logging should only be thread-safe and with this question I am exploring whether structlog
is as well?