/* @file log_level.hpp */ #include namespace xo { enum class log_level : std::uint32_t { /* control log message severity * silent > severe > error > warning > info > chatty */ chatty, info, warning, error, severe, silent, default_level = error }; /*log_level*/ inline bool operator>(log_level x, log_level y) { return (static_cast(x) > static_cast(y)); } inline bool operator>=(log_level x, log_level y) { return (static_cast(x) >= static_cast(y)); } inline bool operator<(log_level x, log_level y) { return (static_cast(x) < static_cast(y)); } inline bool operator<=(log_level x, log_level y) { return (static_cast(x) <= static_cast(y)); } } /*namespace xo*/ /* end log_level.hpp */