Skip to contents

Convenience helper to control the verbosity of rMVPA's logging output. Internally this wraps futile.logger::flog.threshold() for the package's logger.

Usage

set_log_level(level = "INFO")

Arguments

level

Logging level to use. Can be a character string ("TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "OFF") or a numeric level constant from the futile.logger package.

Value

Invisibly returns the numeric log level.

Details

Typical usage:

  • set_log_level("INFO") - default, hides debug messages.

  • set_log_level("DEBUG") - show detailed per-batch timing and ROI diagnostics.

  • set_log_level("WARN") - only warnings and errors.

This affects all rMVPA logging performed via futile.logger.

Examples

if (FALSE) { # \dontrun{
  rMVPA::set_log_level("DEBUG")
  rMVPA::set_log_level("WARN")
} # }