read_logs {loggit2}R Documentation

Return log file as an R data frame

Description

This function returns a data.frame containing all the logs in the provided ndjson log file.

Usage

read_logs(logfile = get_logfile(), unsanitizer = default_ndjson_unsanitizer)

Arguments

logfile

Path to log file.

unsanitizer

Unsanitizer function to run over elements in log. Defaults to default_ndjson_unsanitizer()

Value

A data.frame.

Examples

  set_logfile(file.path(tempdir(), "loggit.log"), confirm = FALSE)
  message("Test log message")
  read_logs()


[Package loggit2 version 2.2.2 Index]