Skip to content

Consistent log formating for the installer #1189

@WichoGZF

Description

@WichoGZF

Is your feature request related to a problem? Please describe.

During the installation process, while there's a format that's repeated (i.e [EAF] prepended to installer-related logs), it's not consistent throughout all eaf-related logs. Leading to places where we log eaf-related errors yet make no indication this error is related to eaf itself which is confusing (e.g the "Error:" pattern with a plain print is commonly repeated).

There's also no difference between errors/warn/info for users, either in terms of formatting and color.

Describe the solution you'd like

  • A consistent structure for the eaf-installer' stdout messages (info,warn,success,error) including coloring, structure that differentiates them.

Describe alternatives you've considered
None.

Additional context
I'd love to take these on personally, if the maintainers are okay with these proposals. I'm thinking of the following changes

  1. Add functions for error, warn, info, success with their respective format and colors and refactor existing print() statements with them.

Let me know what you think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions