Archives log entries based on their levels: INFO, ERROR, or FATAL. If paths are not provided,
temporary files will be used.
Usage
seasonder_logArchiver(
log_path = NULL,
log_info_path = log_path,
log_error_path = log_info_path,
log_fatal_path = log_error_path
)
Arguments
- log_path
Path to the main log file.
- log_info_path
Path to the INFO level log file.
- log_error_path
Path to the ERROR level log file.
- log_fatal_path
Path to the FATAL level log file.
Value
When temporary files are used, returns a character string with the main log file path; otherwise, returns an invisible value indicating that logs were archived.
Examples
seasonder_logArchiver()
#> [1] "/tmp/Rtmpz2XTcl/file1ba82fbc8e91"