Skip to contents

S3 object to represent a typed & predefined log level.

Usage

new_log_level(name, description, severity, log_style = NULL, msg_style = NULL)

Arguments

name

name of the log level is the string representation.

description

description of the log level & limited info on appropriate usage.

severity

log severity is used in determining if a message should get displayed according to the currently set evaluation threshold.

log_style

is a crayon::style() that will colorize the log level.

msg_style

is a crayon::style() style that will gray scale the log message, with typically inverted strength, according to the severity.

Value

log_level