xtd 0.2.0
Loading...
Searching...
No Matches
event_type_filter.h
Go to the documentation of this file.
1
4#pragma once
5#include "source_levels.h"
6#include "trace_filter.h"
7
9namespace xtd {
11 namespace diagnostics {
28 public:
30
36
38
47 void event_type(xtd::diagnostics::source_levels level) noexcept;
49
51
62 bool should_trace(const xtd::diagnostics::trace_event_cache& cache, const xtd::ustring& source, xtd::diagnostics::trace_event_type event_type, int32 id, const xtd::ustring& message, std::any data1, const std::vector<std::any>& data_array) noexcept override;
64
65 private:
66 xtd::diagnostics::source_levels level_ = xtd::diagnostics::source_levels::off;
67 };
68 }
69}
Indicates whether a listener should trace based on the event type.
Definition event_type_filter.h:27
xtd::diagnostics::source_levels event_type() const noexcept
Gets the event type of the messages to trace.
event_type_filter(xtd::diagnostics::source_levels level)
Initializes a new instance of the event_type_filter class.
Provides trace event data specific to a thread and a process.
Definition trace_event_cache.h:28
Provides the base class for trace filter implementations.
Definition trace_filter.h:33
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define core_export_
Define shared library export.
Definition core_export.h:13
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
trace_event_type
Identifies the type of event that has caused the trace.
Definition trace_event_type.h:23
source_levels
Specifies the levels of trace messages filtered by the source switch and event type filter....
Definition source_levels.h:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::diagnostics::source_levels enum class.
Contains xtd::diagnostics::trace_filter class.