set_logfile {loggit2} | R Documentation |
Set the log file that loggit will write to.
set_logfile(logfile = NULL, confirm = TRUE, create = TRUE)
logfile |
Absolut or relative path to log file.
An attempt is made to convert the path into a canonical absolute form using |
confirm |
Print confirmation of log file setting? Defaults to |
create |
Create the log file if it does not exist? Defaults to |
No logs outside of a temporary directory will be written until this is set explicitly, as per CRAN policy.
Therefore, the default behavior is to create a file named loggit.log
in your system's temporary directory.
Invisible NULL
.
set_logfile(file.path(tempdir(), "loggit.log"))