A minimal logging class using only base R functions. Provides threshold-based logging with INFO, WARN, and FATAL levels.
new()Initialize a new SimpleLogger
SimpleLogger$new(threshold = 0)thresholdInitial threshold level (default: 0 for silent)
A new SimpleLogger instance
info()Log an informational message
SimpleLogger$info(msg, ...)msgMessage to log
...Additional arguments (currently ignored)
NULL invisibly
warn()Log a warning message
SimpleLogger$warn(msg, ...)msgMessage to log
...Additional arguments (currently ignored)
NULL invisibly
fatal()Log a fatal error message
SimpleLogger$fatal(msg, ...)msgMessage to log
...Additional arguments (currently ignored)
NULL invisibly
get_threshold()Get current threshold
SimpleLogger$get_threshold()Current threshold value
set_threshold()Set threshold level
SimpleLogger$set_threshold(level)levelThreshold level (0 = silent, 4 = INFO, 5 = WARN, 6 = FATAL)
NULL invisibly
clone()The objects of this class are cloneable with this method.
SimpleLogger$clone(deep = FALSE)deepWhether to make a deep clone.