Color Output
cat2(
...,
level = "DEBUG",
print_level = FALSE,
file = "",
sep = " ",
fill = FALSE,
labels = NULL,
append = FALSE,
end = "\n",
pal = list(DEBUG = "grey60", INFO = "#1d9f34", WARNING = "#ec942c", ERROR =
"#f02c2c", FATAL = "#763053", DEFAULT = "grey60"),
use_cli = TRUE,
bullet = "auto"
)
to be printed
'DEBUG', 'INFO', 'WARNING', 'ERROR', or 'FATAL' (total 5 levels)
if true, prepend levels before messages
pass to base::cat
character to append to the string
a named list defining colors see details
logical, whether to use package 'cli'
character, if use 'cli', which symbol to show. see
symbol
none.
There are five levels of colors by default: 'DEBUG', 'INFO', 'WARNING', 'ERROR',
or FATAL. Default colors are: 'DEBUG' (grey60
), 'INFO' (#1d9f34
), 'WARNING'
(#ec942c
), 'ERROR' (#f02c2c
), 'FATAL' (#763053
) and
'DEFAULT' (#000000
, black). If level is not in preset five levels,
the color will be "default"-black color.