Description Usage Arguments Value Examples
Adding color to a string to be used in terminal output. Supports ANSI standard colors 8 or 256.
1 | grayscale_by_log_level(msg, level)
|
msg |
string |
level |
see |
string with ANSI escape code
1 2 3 4 5 6 7 8 9 10 | ## Not run:
cat(grayscale_by_log_level(FATAL, 'foobar'), '\n')
cat(grayscale_by_log_level(ERROR, 'foobar'), '\n')
cat(grayscale_by_log_level(WARN, 'foobar'), '\n')
cat(grayscale_by_log_level(SUCCESS, 'foobar'), '\n')
cat(grayscale_by_log_level(INFO, 'foobar'), '\n')
cat(grayscale_by_log_level(DEBUG, 'foobar'), '\n')
cat(grayscale_by_log_level(TRACE, 'foobar'), '\n')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.