Logger | R Documentation |
Create a LoggerRefClass object
Logger(name = "logger", filename = NA, do_echo = interactive(), do_timestamp = TRUE, start_watch = TRUE, roll_file = TRUE, roll_size = 100000L)
name |
the name of the logger, I usually make it the name of the script |
filename |
the name of the file to send the messages to |
do_echo |
logical to output to sterr |
do_timestamp |
if TRUE then prepend a time stamp to messages |
start_watch |
logical, if TRUE start the stopwatch |
roll_file |
logical, if TRUE then check to see if the file should be rolled before use. |
... |
further arguments for rolling the log file |
a LoggerRefClass object
Other Logger: Logger_elapsed
,
Logger_error
, Logger_info
,
Logger_log
,
Logger_scriptreport
,
Logger_setfilename
,
Logger_tail
, Logger_warn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.