xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Go to the documentation of this file.
1 #pragma once
5 #include "source_levels.h"
6 #include "trace_filter.h"
9 namespace xtd {
11  namespace diagnostics {
21  public:
44  bool should_trace(const xtd::diagnostics::trace_event_cache& cache, const xtd::ustring& source, xtd::diagnostics::trace_event_type event_type, int32_t id, const xtd::ustring& message, std::any data1, const std::vector<std::any>& data_array) override;
46  private:
48  };
49  }
50 }
event_type_filter(xtd::diagnostics::source_levels level)
Initializes a new instance of the event_type_filter class.
Contains xtd::diagnostics::trace_filter class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Specifies the levels of trace messages filtered by the source switch and event type filter...
Definition: source_levels.h:18
Provides trace event data specific to a thread and a process.
Definition: trace_event_cache.h:22
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
xtd::diagnostics::source_levels event_type() const
Gets the event type of the messages to trace.
bool should_trace(const xtd::diagnostics::trace_event_cache &cache, const xtd::ustring &source, xtd::diagnostics::trace_event_type event_type, int32_t id, const xtd::ustring &message, std::any data1, const std::vector< std::any > &data_array) override
Determines whether the trace listener should trace the event.
Contains xtd::diagnostics::source_levels enum class.
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...
Does not allow any events through.
Provides the base class for trace filter implementations.
Definition: trace_filter.h:27
Indicates whether a listener should trace based on the event type.
Definition: event_type_filter.h:20
Identifies the type of event that has caused the trace.
Definition: trace_event_type.h:18