Skip to content

[Feature Request] Colorize terminal output #399

Description

@clandest

Please support color and bold styles to beautify terminal output. For example, make local node descriptor in Bold font, and colorize INFO, TRACE, DEBUG, ERROR, WARN into blue, green, dark green, red, orange, respectively.

Something like this
https://rust-lang-nursery.github.io/rust-cookbook/cli/ansi_terminal.html

Dan comment 4-Nov:
We probably don't want to bother colorizing the output to the logfiles, because we eventually want to make that output JSON or some other machine-readable format, and colorizing the output would just obfuscate that; but using ANSI color for CLI output is a good idea, and I can imagine a CLI command such as

masq show logs --log-level debug --format colorized-text

that would show logs in real time on the console in text form with ANSI color.

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

    Labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions