old <- logger:::namespaces_set()
log_formatter(formatter_json)
log_layout(layout_json_parser())
log_info(everything = 42)
log_info(mtcars = mtcars, species = iris$Species)
logger:::namespaces_set(old)
Run the code above in your browser using DataLab