a wrapper function for logging different types of log entries
Examples
dir.create(your_article_folder <- file.path(tempdir(), "exampledir"))
example_files <- system.file("article", package = "rebib")
x <- file.copy(from = example_files,to=your_article_folder,recursive = TRUE)
your_article_path <- paste(your_article_folder,"article",sep="/")
rebib::log_setup(your_article_path, "log-file.log", 2)
rebib::rebib_log("Hello", "INFO", 2)
#> NULL
cat(readLines(paste(your_article_path,"/log-file.log",sep="")),sep="\n")
#> INFO [2024-10-15 07:52:10] Hello
unlink(your_article_folder,recursive = TRUE)