parallelize.dynamic (version 0.9-1)

Log: 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__)) Log.setLevel(level = get("GlobalLogLevel", envir = Log_env__)) Log.level()

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.

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.

See Also

Log.setLevel, ~~~

Examples

Run this code
	Log.setLevel(4);
	Log('hello world', 4);
	Log.setLevel(3);
	Log('hello world', 4);

Run the code above in your browser using DataLab