#include <event_type_filter.h>
Indicates whether a listener should trace based on the event type.
- Namespace
- xtd::diagnostics
- Library
- xtd.core
Inherits xtd::diagnostics::trace_filter.
|
| event_type_filter (xtd::diagnostics::source_levels level) |
| Initializes a new instance of the event_type_filter class.
|
|
xtd::diagnostics::source_levels | event_type () const |
| Gets the event type of the messages to trace.
|
|
void | event_type (xtd::diagnostics::source_levels level) |
| Sets 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.
|
|
virtual 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)=0 |
| When overridden in a derived class, determines whether the trace listener should trace the event.
|
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object.
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type.
|
|
template<typename object_t > |
std::unique_ptr< object_t > | memberwise_clone () const |
| Gets the type of the current instance.
|
|
virtual xtd::ustring | to_string () const noexcept |
| Returns a std::string that represents the current object.
|
|
|
static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance.
|
|
| trace_filter ()=default |
| Initializes a new instance of the trace_filter class.
|
|
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) |
| determines whether the trace listener should trace the event.
|
|
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) |
| determines whether the trace listener should trace the event.
|
|
◆ event_type_filter()
◆ event_type() [1/2]
◆ event_type() [2/2]
Sets the event type of the messages to trace.
- Parameters
-
◆ should_trace()
Determines whether the trace listener should trace the event.
- Parameters
-
cache | The xtd::diagnostics::trace_event_cache that contains information for the trace event. |
source | The name of the source. |
event_type | One of the trace_event_type values specifying the type of event that has caused the trace |
id | A trace identifier number. |
message | Message to write. |
data1 | A trace data object. |
data_array | A trace data object. |
Implements xtd::diagnostics::trace_filter.
The documentation for this class was generated from the following file: