Get or set log record layout
Arguments
- layout
function defining the structure of a log record, eg
layout_simple()
,layout_glue()
orlayout_glue_colors()
,layout_json()
, or generator functions such aslayout_glue_generator()
, default NULL- namespace
logger namespace
- index
index of the logger within the namespace
Examples
if (FALSE) { # \dontrun{
log_layout(layout_json())
log_info(42)
} # }