Learn R Programming

rlog (version 0.1.0)

log_error: Log an error message

Description

Log messages will only be emitted if the log priority matches or is higher than the priority of your message

Usage

log_error(message)

Arguments

message

your message to log

Value

invisibly returns TRUE/FALSE

Examples

Run this code
# NOT RUN {
log_error("This is an error message")
Sys.setenv("LOG_LEVEL" = "TRACE")
log_error("This is an error message")
# }

Run the code above in your browser using DataLab