This function creates a backup of the specified log file and initializes the necessary log files for error and warning messages. It also creates a directory for the log files if it does not already exist.

create_file_structure(log_file)

Arguments

log_file

A character vector specifying the name of the log file.

Value

NULL (This function is called for its side effect of creating log files.)

Examples

create_file_structure("error.log")
#> Error in create_file_structure("error.log"): could not find function "create_file_structure"