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.
Examples
logger("A standard message", level = 3)
#> [INFO]A standard message
logger("A debug message", level = 4)
#> NULL
logger("A deep debug message", level = 5)
#> NULL