layout_json: Generate log layout function rendering JSON

View source: R/layouts.R

layout_jsonR Documentation

Generate log layout function rendering JSON

Description

Generate log layout function rendering JSON

Usage

layout_json(fields = default_fields())

Arguments

fields

character vector of field names to be included in the JSON

Value

character vector

Note

This functionality depends on the jsonlite package.

See Also

Other log_layouts: get_logger_meta_variables(), layout_blank(), layout_glue(), layout_glue_colors(), layout_glue_generator(), layout_json_parser(), layout_logging(), layout_simple()

Examples


log_layout(layout_json())
log_info(42)
log_info("ok {1:3} + {1:3} = {2*(1:3)}")


daroczig/logger documentation built on Sept. 24, 2024, 4:13 a.m.