Learn R Programming

rebib (version 0.5.0)

rebib_log: log messages for various categories

Description

a wrapper function for logging different types of log entries

Usage

rebib_log(message, category, idx)

Value

null

Arguments

message

message to be sent

category

category of the log message

idx

index of log level

Examples

Run this code
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)
cat(readLines(paste(your_article_path,"/log-file.log",sep="")),sep="\n")
unlink(your_article_folder,recursive = TRUE)

Run the code above in your browser using DataLab