Learn R Programming

tryCatchLog (version 1.3.1)

log2console: Prints a time-stamped log message to the console incl. the severity level

Description

This is a package-internal function.

Usage

log2console(severity.level, msg)

Arguments

severity.level

String containing the severity level (ERROR, WARN or INFO) of the message

msg

The message to be printed (as character).

Value

The log message as it was printed to the console. NA is printed as empty string.

Examples

Run this code
# NOT RUN {
tryCatchLog:::log2console("WARN", "this is my last warning")

# }

Run the code above in your browser using DataLab