summariseLogFile: Summarise and extract the information of a log file into a...

View source: R/logger.R

summariseLogFileR Documentation

Summarise and extract the information of a log file into a summarised_result object.

Description

Summarise and extract the information of a log file into a summarised_result object.

Usage

summariseLogFile(
  logFile = getOption("omopgenerics.logFile"),
  cdmName = "unknown"
)

Arguments

logFile

File path to the log file to summarise. Create a logFile with createLogFile().

cdmName

Name of the cdm for the summarise_result object.

Value

A summarise_result with the information of the log file.

Examples

library(dplyr)

logFile <- tempfile(pattern = "log_{date}_{time}", fileext = ".txt")
createLogFile(logFile = logFile)

logMessage("Starting analysis")
1 + 1
logMessage("Analysis finished")

res <- summariseLogFile()

glimpse(res)

tidy(res)


omopgenerics documentation built on June 8, 2025, 10:40 a.m.