xtd 0.2.0
Loading...
Searching...
No Matches

◆ level() [2/2]

void xtd::diagnostics::trace_switch::level ( xtd::diagnostics::trace_level  level)
noexcept

Sets the trace level that determines the messages the switch allows.

Parameters
levelOne of the xtd::diagnostics::trace_level values that specifies the level of messages that are allowed by the switch.
Remarks
Setting this property updates the xtd::diagnostics::trace_switch::trace_error, xtd::diagnostics::trace_switch::trace_warning, xtd::diagnostics::trace_switch::trace_info, and xtd::diagnostics::trace_switch::trace_verbose properties to reflect the new value.