Luc Sorel-Giffo · @lucsorelgiffo
40 followers · 36 posts · Server floss.social

an article about , a library enabling to write logs as documents in your applications. I prefer the way to use it (you import the logger factory from structlog), in comparison of , where you import the library (doing so decorates the native Python logging module) AND the native logging module, from which you retrieve the loggers. The latter approach can break when use formatting tools like isort, which sort the imports.

bitestreams.com/blog/structure

#python_json_logger #Python #json #structlog

Last updated 2 years ago