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

◆ trace_switch() [1/2]

xtd::diagnostics::trace_switch::trace_switch ( const xtd::string display_name,
const xtd::string description 
)

Initializes a new instance of the xtd::diagnostics::trace_switch class, using the specified display name and description.

Parameters
display_nameThe name to display on a user interface.
descriptionThe description of the switch.
Remarks
he xtd::diagnostics::trace_switch class provides 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 test the Level of the switch. The xtd::diagnostics::trace_switch::level property gets or sets the switch's xtd::diagnostics::trace_level.
Note
To improve performance, you can make xtd::diagnostics::trace_switch members static in your class.