| colorize_by_log_level {logger} | R Documentation |
Adding color to a string to be used in terminal output. Supports ANSI standard colors 8 or 256.
colorize_by_log_level(msg, level)
msg |
string |
level |
see |
string with ANSI escape code
## Not run: cat(colorize_by_log_level(FATAL, 'foobar'), '\n') cat(colorize_by_log_level(ERROR, 'foobar'), '\n') cat(colorize_by_log_level(WARN, 'foobar'), '\n') cat(colorize_by_log_level(SUCCESS, 'foobar'), '\n') cat(colorize_by_log_level(INFO, 'foobar'), '\n') cat(colorize_by_log_level(DEBUG, 'foobar'), '\n') cat(colorize_by_log_level(TRACE, 'foobar'), '\n') ## End(Not run)