Colorize Levels
colorize_levels(
x,
colors = getOption("lgr.colors", NULL),
transform = identity
)
numeric
or character
levels to be colored. Unlike in many other
functions in lgr, character
levels are not case sensitive in this
function and leading/trailing whitespace is ignored to make it more
comfortable to use colorize_levels()
inside formatting functions.
A list
of functions
that will be used to color the
log levels (likely from crayon::crayon).
a function
to transform x
(for example toupper()
)
a character
vector wit color ANSI codes
Other formatting utils:
label_levels()