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