View source: R/makeSimpleFileLogger.R
makeSimpleFileLogger | 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 [function(msg)] |
Send log message. |
getMessages [function(n)] |
Get last |
clear [function()] |
Resets logger and deletes log file. |
getSize [function()] |
Returns the number of logs written. |
getLogfile [function()] |
Returns the full file name logs are written to. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.