Skip to content

Feature request: re-order output columns without explicitly defining them #622

Description

@jwuerzinger

Following up on #388, it would be really nice to add an option to reorder columns without having to explicitly define colours etc.

I.e. changing sth like this:

 2021-12-25 00:08:19 [debug    ] running in verbose mode        [myapp]

into e.g.

 2021-12-25 00:08:19 [myapp] [debug    ] running in verbose mode

with e.g. something like:

processors=structlog.get_config()["processors"]
processors[-1].reorder_columns([0, 3, 1, 2])
structlog.configure( processors=processors )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions