makeSimpleFileLogger {BBmisc} | R Documentation |
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)
logfile |
[ |
touch |
[ |
keep |
[ |
[SimpleFileLogger
]. A list with following functions:
log [ |
Send log message. |
getMessages [ |
Get last |
clear [ |
Resets logger and deletes log file. |
getSize [ |
Returns the number of logs written. |
getLogfile [ |
Returns the full file name logs are written to. |