new.logger | R Documentation |
Constructs a new logger object. Allows for writing to log files and stdout. Entries are tagged by time stamps and event type.
new.logger(logfile)
logfile |
the name of the log file |
a new logger object with the following methods:
writes an info message to the log file
writes an warning message to the log file
writes an error message to the log file
logger <- new.logger("mylogfile.log") logger$info("This is a test log entry!")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.