moma_logging: MoMA Package Logging Functionality

Description Usage Arguments Details Value

Description

Control the global logging level for the moma package.

Usage

1
2
moma_logger_level(level = c("ERROR", "WARNING", "MESSAGE", "INFO",
  "DEBUG"))

Arguments

level

The desired new log level. Available levels are

  • ERROR - corresponding to base::stop;

  • WARNING - corresponding to base::warning;

  • MESSAGE - corresponding to base::message;

  • INFO; and

  • DEBUG.

If omitted, the log level is not changed (and the current level is still returned invisibly.) See below for details about the different levels.

Details

The moma package has a multi-level logging system, with a single global log level; (which applies to both R and C++ level functionality.) the levels are, in decreasing order, ERROR, WARNING, MESSAGE (default), INFO, DEBUG.

To change the amount of output from the moma package, the moma_logger_level function can be used to adjust the global log level. The INFO and DEBUG levels can be quite verbose and may significantly slow down the package.

Value

The previous log level (invisibly).


DataSlingers/MoMA documentation built on Oct. 30, 2019, 5:55 a.m.