source_switch(const xtd::string &display_name, const xtd::string &default_switch_value)
Initializes a new instance of the source_switch class, specifying the display name and the default va...
auto should_trace(xtd::diagnostics::trace_event_type event_type) noexcept -> bool
Determines if trace listeners should be called, based on the trace event type.
auto level() const noexcept -> xtd::diagnostics::source_levels
Gets the level of the switch.
auto on_value_changed() -> void override
Invoked when the value of the value property changes.
source_switch(const xtd::string &name)
Initializes a new instance of the source_switch class, specifying the name of the source.
Provides an abstract base class to create new debugging and tracing switches.
Definition switch_object.hpp:36
auto display_name() const noexcept -> const xtd::string &
Gets a name used to identify the switch.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
trace_event_type
Identifies the type of event that has caused the trace.
Definition trace_event_type.hpp:25
source_levels
Specifies the levels of trace messages filtered by the source switch and event type filter....
Definition source_levels.hpp:25
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::diagnostics::source_levels enum class.
Contains xtd::string alias.
Contains xtd::diagnostics::switch_object class.
Contains xtd::diagnostics::trace_event_type enum class.