new_fmt_timestamp | R Documentation |
Placeholder for a formatted time stamp in a log layout.
new_fmt_timestamp(style, format = "[%x %H:%M:%S %z]")
style |
format style (crayon) |
format |
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()
## Not run: fmt_timestamp(red $ bold, "%Y-%m-%d %H:%M:%S") fmt_timestamp(blue $ italic, "%x %H:%M:%S %z") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.