• pingvenoOP
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    Structlog is one of my favorite Python modules. It provides a cleaner way to build logs, which can then be rendered into a format like JSON that is more searchable and reliable than a simplistic string formatting approach. I like to pair it with django-structlog to add request ID and correlation ID recognition, or roll my own when using other web frameworks.