From 7484b4f095e3bf7c16fc2f91dc1a78f04397bf01 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Wed, 23 Feb 2022 17:04:48 -0600 Subject: host: test: Add UHD_UNITTEST_LOG_LEVEL override --- host/include/uhd/utils/log.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/utils/log.hpp b/host/include/uhd/utils/log.hpp index 7b76ec075..2ad7f5528 100644 --- a/host/include/uhd/utils/log.hpp +++ b/host/include/uhd/utils/log.hpp @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -122,6 +123,12 @@ enum severity_level { off = 6, /**< logging is turned off */ }; +/*! Parses a `severity_level` from a string. If a value could not be parsed, + * returns none. + */ +boost::optional UHD_API parse_log_level_from_string( + const std::string& log_level_str); + /*! Logging info structure * * Information needed to create a log entry is fully contained in the -- cgit v1.2.3