Skip to content

Customise logs format #63

@adamu

Description

@adamu

It would be nice to be able to customize the output of the logs command. Right now, there is a lot of duplicated data before any meaningful log is printed, which means it's not possible to view the logs nicely in any standard-width terminal window. For example:

2020-05-21T07:33:04.257862+00:00 funky-slugggy-name[funky-slugggy-name-1231231231-dgdfgg]: web.1 | actual app log goes here

Any app using a logging framework will also include a timestamp at the start of the log statement, which means the timestamp is logged twice in that case too.

My screen fits 238 characters, and 110 of those (46%) are the prefix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions