10 namespace diagnostics {
47 inline std::ostream& operator<<(std::ostream& os,
xtd::diagnostics::trace_options value) {
return os <<
to_string(value, {{
xtd::diagnostics::trace_options::none,
"none"}, {
diagnostics::trace_options::logical_operation_stack,
"logical_operation_stack"}, {
diagnostics::trace_options::date_time,
"date_time"}, {
diagnostics::trace_options::timestamp,
"timestamp"}, {
diagnostics::trace_options::process_id,
"process_id"}, {
diagnostics::trace_options::thread_id,
"thread_id"}, {
diagnostics::trace_options::callstack,
"callstack"}});}
48 inline std::wostream& operator<<(std::wostream& os,
xtd::diagnostics::trace_options value) {
return os <<
to_string(value, {{
xtd::diagnostics::trace_options::none, L
"none"}, {
diagnostics::trace_options::logical_operation_stack, L
"logical_operation_stack"}, {
diagnostics::trace_options::date_time, L
"date_time"}, {
diagnostics::trace_options::timestamp, L
"timestamp"}, {
diagnostics::trace_options::process_id, L
"process_id"}, {
diagnostics::trace_options::thread_id, L
"thread_id"}, {
diagnostics::trace_options::callstack, L
"callstack"}});}
trace_options
Specifies trace data options to be written to the trace output.
Definition: trace_options.h:18
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37
@ none
Do not write any elements.
@ logical_operation_stack
Write the logical operation stack, which is represented by the return value of the CorrelationManager...
@ callstack
Write the call stack, which is represented by the return value of the Environment....
@ process_id
Write the process identity, which is represented by the return value of the Process....
@ date_time
Write the date and time.
@ timestamp
Write the timestamp, which is represented by the return value of the GetTimestamp method.
@ thread_id
Write the thread identity, which is represented by the return value of the Thread....
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17