old <- logger:::namespaces_set()
log_formatter(formatter_logging)
log_info("42")
log_info(42)
log_info(4 + 2)
log_info("foo %s", "bar")
log_info("vector %s", 1:3)
log_info(12, 1 + 1, 2 * 2)
logger:::namespaces_set(old)
Run the code above in your browser using DataLab