Log: Log a message to stderr.

View source: R/Rmeta.R

LogR Documentation

Log a message to stderr.

Description

Log a message to stderr. Indicate a logging level to control verbosity.

Usage

Log(o, level = get("DefaultLogLevel", envir = Log_env__), doPrint = NULL)

Arguments

o

Message to be printed.

level

If Log.setLevel was called with this value, subsequent calls to Log with values of level smaller or equal to this value will be printed.

doPrint

additional object that will be output using print.

Details

This function prints a message to stderr if the condition is met that a global log-level is set to greater or equal the value indicated by level. Log.level returns the current logging level.

Value

inivisble formatted message or NULL if nothing was logged

Author(s)

Stefan Böhringer <r-packages@s-boehringer.org>

See Also

Log.setLevel


sboehringer/plausibility documentation built on Dec. 6, 2022, 11:34 a.m.