Node icon indicating copy to clipboard operation
Node copied to clipboard

[Feature Request] Colorize terminal output

Open clandest opened this issue 6 years ago • 1 comments

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.

clandest avatar Sep 22 '19 15:09 clandest

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.

dnwiebe avatar Nov 03 '19 14:11 dnwiebe