powered by
Placeholder for a formatted time stamp in a log layout.
new_fmt_timestamp(style, format = "[%x %H:%M:%S %z]")
format style (crayon)
time stamp format, defaults to: %x %H:%M:%S %z, e.g., 12/04/21 14:31:25 -0500
log metric layout.
Other Log Layout: evaluate_layout(), new_fmt_cls_field(), new_fmt_exec_scope(), new_fmt_layout(), new_fmt_line_break(), new_fmt_literal(), new_fmt_log_msg(), new_fmt_metric(), new_log_layout()
evaluate_layout()
new_fmt_cls_field()
new_fmt_exec_scope()
new_fmt_layout()
new_fmt_line_break()
new_fmt_literal()
new_fmt_log_msg()
new_fmt_metric()
new_log_layout()
# NOT RUN { fmt_timestamp(red $ bold, "%Y-%m-%d %H:%M:%S") fmt_timestamp(blue $ italic, "%x %H:%M:%S %z") # }
Run the code above in your browser using DataLab