Skip to contents

MTKVerbosity(...) collects the levels ("Silent", "DebugLevel", "InfoLevel", "WarnLevel" or "ErrorLevel") of ModelingToolkit's diagnostic messages, one per toggle, as the MTKVerbosity specifier of SciMLLogging. preset sets every toggle at once: "Standard" (the defaults), "None" (all silent), "Minimal" (warnings and errors only), "Detailed" and "All" (everything at least at info level). TRUE and FALSE stand for "Standard" and "None". Individual toggles given in ... override the preset.

Usage

MTKVerbosity(..., preset = "Standard")

Arguments

...

Toggles, such as state_priority_tie = "Silent".

preset

A preset name or a logical.

Value

An object of class MTKVerbosity, a named character vector.

Examples

v <- MTKVerbosity(state_priority_tie = "Silent")
v[["dynamic_opt_time_grid"]]
#> [1] "WarnLevel"
MTKVerbosity(preset = FALSE)[["initialization_analysis"]]
#> [1] "Silent"