log_layout {logger} | R Documentation |
Get or set log record layout
Description
Get or set log record layout
Usage
log_layout(layout = NULL, namespace = "global", index = 1)
Arguments
layout |
function defining the structure of a log record, eg |
namespace |
logger namespace |
index |
index of the logger within the namespace |
See Also
logger
, log_threshold
, log_appender
and log_formatter
Examples
## Not run:
log_layout(layout_json())
log_info(42)
## End(Not run)
[Package logger version 0.3.0 Index]