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...
xtd::diagnostics::source_levels level() const noexcept
Gets the level of the switch.
void on_value_changed() override
Invoked when the value of the value property changes.
bool should_trace(xtd::diagnostics::trace_event_type event_type) noexcept
Determines if trace listeners should be called, based on the trace event type.
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_base.hpp:36
const xtd::string & display_name() const noexcept
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_base class.
Contains xtd::diagnostics::trace_event_type enum class.