log_file_ops: log_file_ops

Description Usage Arguments Value Examples

View source: R/log_file_ops.R

Description

Create the necessary file infrastructure to efficiently start logging with "log4r".

Usage

1
log_file_ops(dir_path = NULL, logfile_nm = "logfile")

Arguments

dir_path

The name of the folder in which the logfile should be saved. Creates the folder if required.

logfile_nm

Provide a name for the logfile. Do not include suffix. Defaults to "logfile".

Value

Creates log directory and log file if required. Calls log_enable() to assign necessary logging objects in specified scope.

Examples

1
2
3
log_file_ops(dir_path = "logs")

unlink("logs", recursive = TRUE)

ptspotter documentation built on May 3, 2021, 9:07 a.m.