Skip to content

Don't lose order of array when logging fields #683

@nixomose

Description

@nixomose

Here the provided array is converted to a map and then converted back to an array

// Convert slog Attrs to a map.

This has the unfortunate side effect of taking a sorted list and unsorting it.

Feature request: make it possible to output log fields in the order they were provided in, or provide a way to sort them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalProposal to add a new feature to pterm

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions