layout_json | R Documentation |
Generate log layout function rendering JSON
layout_json(fields = default_fields())
fields |
character vector of field names to be included in the JSON |
character vector
This functionality depends on the jsonlite package.
Other log_layouts
:
get_logger_meta_variables()
,
layout_blank()
,
layout_glue()
,
layout_glue_colors()
,
layout_glue_generator()
,
layout_json_parser()
,
layout_logging()
,
layout_simple()
log_layout(layout_json())
log_info(42)
log_info("ok {1:3} + {1:3} = {2*(1:3)}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.