10 namespace diagnostics {
30 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"}});}
31 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"}});}
trace_level
Specifies what messages to output for the debug, trace and trace_switch classes.
Definition: trace_level.h:17
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
@ verbose
Output all debugging and tracing messages.
@ off
Output no tracing and debugging messages.
@ warning
Output warnings and error-handling messages.
@ info
Output informational messages, warnings, and error-handling messages.
@ error
Output error-handling messages.
@ verbose
Allows critical, error, warning, information, and verbose events through.
@ off
Does not allow any events through.
@ warning
Allows critical, error, and warning events through.
@ error
Allows critical and error events through.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17