Set the log file that loggit will write to. No logs will be written until
this is set, as per CRAN policy. The suggested use of this function would be
to call it early, to log to the current working directory, as follows:
setLogFile(paste0(getwd(), "/loggit.json"))
. If you are using loggit
in
your package, you can wrap this function in .onLoad()
so that the logfile
is set when your package loads.