new_fmt_literal: Formatted Literal

new_fmt_literalR Documentation

Formatted Literal

Description

Placeholder for a formatted literal in a log layout.

Usage

new_fmt_literal(style, literal)

Arguments

style

format style (crayon)

literal

log value

Value

log metric layout.

See Also

Other Log Layout: evaluate_layout(), new_fmt_cls_field(), new_fmt_exec_scope(), new_fmt_layout(), new_fmt_line_break(), new_fmt_log_msg(), new_fmt_metric(), new_fmt_timestamp(), new_log_layout()

Examples

## Not run: 
new_fmt_literal(red $ bold, "literal text")

new_fmt_literal(blue $ italic, "literal text")

## End(Not run)

dyn.log documentation built on March 18, 2022, 7:07 p.m.