Logger: Create a LoggerRefClass object

View source: R/Logger.R

LoggerR Documentation

Create a LoggerRefClass object

Description

Create a LoggerRefClass object

Usage

Logger(name = "logger", filename = NA, do_echo = interactive(),
  do_timestamp = TRUE, start_watch = TRUE, roll_file = TRUE,
  roll_size = 100000L)

Arguments

name

the name of the logger, I usually make it the name of the script

filename

the name of the file to send the messages to

do_echo

logical to output to sterr

do_timestamp

if TRUE then prepend a time stamp to messages

start_watch

logical, if TRUE start the stopwatch

roll_file

logical, if TRUE then check to see if the file should be rolled before use.

...

further arguments for rolling the log file

Value

a LoggerRefClass object

See Also

Other Logger: Logger_elapsed, Logger_error, Logger_info, Logger_log, Logger_scriptreport, Logger_setfilename, Logger_tail, Logger_warn


BigelowLab/rscripting documentation built on Oct. 24, 2022, 5:31 p.m.