powered by
Returns a new logger using the log package.
log
new_log(prefix = ">", write = FALSE, file = "ambiorix.log", sep = "")
String to prefix all log messages.
Whether to write the log to the file.
file
Name of the file to dump the logs to, only used if write is TRUE.
write
TRUE
Separator between prefix and other flags and messages.
prefix
An R& of class log::Logger.
log::Logger
# NOT RUN { log <- new_log() log$log("Hello world") # }
Run the code above in your browser using DataLab