Skip to navigation

holoscan::set_automatic_diagnostic_logging_enabled

Beta
View as Markdown
HOLOSCAN_CORE_EXPORT void holoscan::set_automatic_diagnostic_logging_enabled(
bool enabled
) noexcept

Set the process-wide preference for existing automatic Core warning/error reports.

Calling with true at startup is normally unnecessary. This setting never prints saved diagnostics, replays a report, or makes compile() dump its returned diagnostics. False does not suppress explicit log_diagnostics() calls, user logging, or structured diagnostic sinks. The first policy access snapshots HOLOSCAN_AUTOMATIC_DIAGNOSTIC_LOGGING: case-insensitive ON/OFF overrides this preference; unset/empty does not. Invalid values generate at most one bounded normal warning. Later environment changes are ignored. Access is thread-safe and never throws. Fatal-invariant reports before process termination remain independent of this policy.

Parameters

enabled
bool

Whether future automatic reports are enabled; the initial preference is true.