xtd 0.2.0
Loading...
Searching...
No Matches

◆ write_if() [1/3]

static void xtd::diagnostics::trace::write_if ( bool  condition,
const xtd::string message 
)
inlinestatic

Writes a message to the trace listeners in the Listeners collection if a condition is true.

Parameters
conditiontrue to cause a message to be written; otherwise, false.
messageA message to write.
Remarks
By default, the output is written to an instance of default_trace_listener.
This method calls the write method of the trace listener.