The following example shows how to use console_trace_listener class.
#define DEBUG
#include <memory>
#include <thread>
#include <xtd/xtd>
using namespace std;
using namespace std::literals;
using namespace std::this_thread;
int main() {
debug::listeners({make_shared<console_trace_listener>()});
debug::write_line("Begin");
debug::indent();
for (auto step = 1; step <= 10; step++) {
debug::write_line("working step {}...", step);
sleep_for(300ms);
}
debug::unindent();
debug::write_line("End");
}
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.h:10