Creates a simple file logger closure to log to a file, including time stamps. An optional buffer holds the last few log messages.
makeSimpleFileLogger(logfile, touch = FALSE, keep = 10L)
[SimpleFileLogger
]. A list with following functions:
Send log message.
Get last n
log messages.
Resets logger and deletes log file.
Returns the number of logs written.
Returns the full file name logs are written to.
[character(1)
]
File to log to.
[logical(1)
]
Should the file be created before the first log message?
Default is FALSE
.
[integer(1)
]
Number of log messages to keep in memory for quick access.
Default is 10
.