Learn R Programming

tryCatchLog (version 1.3.3)

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)

Value

The log message as it was printed to the console.

NA is printed as empty string.

Arguments

severity.level

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

msg

The message to be printed (as character).

Examples

Run this code
tryCatchLog:::log2console("WARN", "this is my last warning")

Run the code above in your browser using DataLab