logger: Primitive logger for debugging.

View source: R/utilities.R

loggerR Documentation

Primitive logger for debugging.

Description

Primitive logger for debugging.

Usage

logger(msg = "", level = DEBUG, stop_on_error = TRUE)

Arguments

msg

The message to print.

level

The message will only be printed if its level is lower or equal to getOption("growR.verbosity").

stop_on_error

Can be set to FALSE in order to continue execution despite emitting a message of level ERROR.

Value

None Prints console output.

See Also

set_growR_verbosity()

Examples

logger("A standard message", level = 3)
logger("A debug message", level = 4)
logger("A deep debug message", level = 5)


growR documentation built on May 29, 2024, 9:12 a.m.