Indicates whether a listener should trace a message based on the source of a trace.
- Namespace
- xtd::diagnostics
- Library
- xtd.core
- Note
- This filter is provided because multiple trace sources can simultaneously use the same trace listener.
|
| source_filter (const xtd::ustring &source) |
| Initializes a new instance of the xtd::diagnostics::source_filter class, specifying the name of the trace source.
|
|
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.
|
|
const xtd::ustring & | source () const |
| Gets the name of the trace source.
|
|
void | source (const xtd::ustring &source) |
| Gets the name of the trace source.
|
|
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.
|
|