texor_log | R Documentation |
a wrapper function for logging different types of log entries
texor_log(message, category, idx)
message |
message to be sent |
category |
category of the log message |
idx |
index of log level |
NUll, but also appends message to the log file in article_dir
dir.create(your_article_folder <- file.path(tempdir(), "exampledir"))
example_files <- system.file("examples/article", package = "texor")
x <- file.copy(from = example_files,to=your_article_folder,recursive = TRUE)
your_article_path <- paste(your_article_folder,"article",sep="/")
texor::log_setup(your_article_path, "log-file.log", "texor" , 2)
texor::texor_log("Hello", "INFO", 2)
cat(readLines(paste(your_article_path,"/log-file.log",sep="")),sep="\n")
unlink(your_article_folder,recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.