Skip to content

Apply level dependent color formatting to other fields Β #87

Open
@bwuerkner

Description

Hello,

I just stumbled upon your package and really like it. Especially the extensive documentation.
While reading said documentation I also realized though that something I'd like to do isn't possible using coloredlogs.
I would like to format the color of the levelname according to my style definition for the level and not the message.
Example:
[ERROR] some error with ERROR in red and "some error" in the default color
[WARNING] some warning with WARNING in yellow and "some warning" in the default color

Do you think this would be a possibility to be added?
Cheers,
Ben

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions