loggit | R Documentation |
Stores in a temporary file the log messages including messages, warnings and errors.
loggit(log_lvl, log_msg) read_logs() set_logfile()
log_lvl |
character: Level of log output. In actual practice, one of "DEBUG", "INFO", "WARN", and "ERROR" are common, but any string may be supplied |
log_msg |
character: Main log message |
Nothing.
if (interactive()) { set_logfile() # create a temporary file for logging loggit("DEBUG", "Hello world") read_logs() # get a data frame with the current messages. }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.