Skip to content

Set the log level for DVS internals

Controls which log messages from the DVS internals are routed to R’s console. error and warn go to stderr(). info, debug and trace go to stdout.

The R package does not consult the RUST_LOG environment variable. RUST_LOG=dvs=<level> only affects the dvs CLI binary. In R, call set_dvs_log_level().

The level is "off" when the package loads, so there is no log output until this function is called.

set_dvs_log_level(level = c("off", "error", "warn", "info", "debug", "trace"))
ArgumentDescription
levelOne of “off”, “error”, “warn”, “info”, “debug”, “trace”.

NULL, invisibly. It is called for its side effect.

# Not run:
set_dvs_log_level("info") # opt in
set_dvs_log_level("debug")
set_dvs_log_level("off") # restore default (silent)