layout_json | R Documentation |
Generate log layout function rendering JSON
layout_json(
fields = c("time", "level", "ns", "ans", "topenv", "fn", "node", "arch", "os_name",
"os_release", "os_version", "pid", "user", "msg")
)
fields |
character vector of field names to be included in the JSON |
character vector
This functionality depends on the jsonlite package.
This is a log_layout
, for alternatives, see layout_blank
, layout_simple
, layout_glue
, layout_glue_colors
, layout_json_parser
, or generator functions such as layout_glue_generator
## Not run:
log_layout(layout_json())
log_info(42)
log_info('ok {1:3} + {1:3} = {2*(1:3)}')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.