xtd
0.2.0
Loading...
Searching...
No Matches
◆
listeners()
[1/2]
static
listener_collection
& xtd::diagnostics::debug::listeners
(
)
static
noexcept
Gets the collection of listeners that is monitoring the trace output.
Returns
A
xtd::diagnostics::debug::listener_collection
that represents a collection of type
xtd::diagnostics::trace_listener
monitoring the trace output.
Remarks
The
xtd::diagnostics::debug::listeners
produce formatted output from the trace output. By default, the collection contains an instance of the
xtd::diagnostics::default_trace_listener
class. If you want to remove the default listener, call the erase method, and pass it the instance of the
xtd::diagnostics::default_trace_listener
. To redirect output to the console window, add an instance of the
xtd::diagnostics::console_trace_listener
class.
Note
The
xtd::diagnostics::debug::listeners
collection is shared by both the
xtd::diagnostics::debug
and the
xtd::diagnostics::trace
classes; adding a trace listener to either class adds the listener to both.
xtd
diagnostics
debug
Generated on Sat Sep 14 2024 21:25:19 for xtd by
Gammasoft
. All rights reserved.