xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Go to the documentation of this file.
1 #pragma once
5 #include "../ustring.h"
8 namespace xtd {
10  namespace diagnostics {
20  enum class trace_level {
22  off = 0,
24  error = 1,
26  warning = 2,
28  info = 3,
30  verbose = 4,
31  };
33  inline std::ostream& operator<<(std::ostream& os, xtd::diagnostics::trace_level value) {return os << to_string(value, {{diagnostics::trace_level::off, "off"}, {diagnostics::trace_level::error, "error"}, {diagnostics::trace_level::warning, "warning"}, {diagnostics::trace_level::info, "info"}, {diagnostics::trace_level::verbose, "verbose"}});}
34  inline std::wostream& operator<<(std::wostream& os, xtd::diagnostics::trace_level value) {return os << to_string(value, {{diagnostics::trace_level::off, L"off"}, {diagnostics::trace_level::error, L"error"}, {diagnostics::trace_level::warning, L"warning"}, {diagnostics::trace_level::info, L"info"}, {diagnostics::trace_level::verbose, L"verbose"}});}
35  }
36 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1110
Allows critical, error, and warning events through.
Output informational messages, warnings, and error-handling messages.
Specifies what messages to output for the debug, trace and trace_switch classes.
Definition: trace_level.h:20
Does not allow any events through.
Output error-handling messages.
Allows critical, error, warning, information, and verbose events through.