write_ndjson {loggit}R Documentation

Write ndJSON-formatted log file

Description

Write ndJSON-formatted log file

Usage

write_ndjson(log_df, logfile, echo = TRUE, overwrite = FALSE)

Arguments

log_df

Data frame of log data. Rows are converted to ndjson entries, with the columns as the fields.

logfile

Log file to write to. Defaults to currently-configured log file.

echo

Echo the ndjson entry to the R console? Defaults to TRUE.

overwrite

Overwrite previous log file data? Defaults to FALSE, and so will append new log entries to the log file.


[Package loggit version 2.1.1 Index]