powered by
data.frame
Returns a data.frame containing all the logs in the provided ndjson log file.
ndjson
read_logs(logfile = get_logfile(), unsanitize = TRUE, last_first = FALSE)
A data.frame, with the columns as the fields in the log file.
Path to log file to read from.
Should escaped special characters be unescaped?
Should the last log entry be the first row of the data frame?
read_logs() returns a data.frame with the empty character columns "timestamp", "log_lvl" and "log_msg" if the log file has no entries.
read_logs()
if (FALSE) { read_logs() read_logs(last_first = TRUE) }
Run the code above in your browser using DataLab