loggit: loggit

View source: R/loggit.R

loggitR Documentation

loggit

Description

Stores in a temporary file the log messages including messages, warnings and errors.

Usage

loggit(log_lvl, log_msg)

read_logs()

set_logfile()

Arguments

log_lvl

character: Level of log output. In actual practice, one of "DEBUG", "INFO", "WARN", and "ERROR" are common, but any string may be supplied

log_msg

character: Main log message

Value

Nothing.

Examples

if (interactive()) {
  set_logfile()      # create a temporary file for logging
  loggit("DEBUG", "Hello world")
  read_logs()        # get a data frame with the current messages.
}

sigbertklinke/smvgraph documentation built on Dec. 10, 2022, 9:13 a.m.