e_log_write | R Documentation |
Initialize and print into a log file and to the console
e_log_write(
log_text = NULL,
log_obj = log_obj,
i_level = 2,
sw_init = c(FALSE, TRUE)[1],
out_path = ".",
file_prefix = "out"
)
log_text |
text string to print |
log_obj |
log_obj object that includes filename, console function, and |
i_level |
Numbers 1 to 5 corresponding to "DEBUG", "INFO", "WARN", "ERROR", "FATAL" from |
sw_init |
TRUE to initilize log file and console logging, FALSE to print text |
out_path |
out path for log file |
file_prefix |
filename prefix for log file |
log_obj or NULL
## Not run:
# initialize log file
log_obj <-
e_log_write(
sw_init = TRUE
, out_path = "."
, file_prefix = "out"
)
# write log entry
e_log_write(
log_text = "Write this message"
, log_obj = log_obj
, i_level = 2
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.