Skip to contents

Placeholder for a formatted time stamp in a log layout.

Usage

new_fmt_timestamp(style, format = "[%x %H:%M:%S %z]")

Arguments

style

format style (crayon)

format

time stamp format, defaults to: %x %H:%M:%S %z, e.g., 12/04/21 14:31:25 -0500

Value

log metric layout.

Examples

if (FALSE) {
fmt_timestamp(red $ bold, "%Y-%m-%d %H:%M:%S")

fmt_timestamp(blue $ italic, "%x %H:%M:%S %z")
}