diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-05-26 18:53:38 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:17 -0800 |
commit | 73171698b55133aaeab461781476b02c4416da8f (patch) | |
tree | 9aa12cfb3b3194a53c9ebbdaa0703343fb2d9f35 /host/include | |
parent | b1cf8ce634b234a0e546045a75fb8940d8e76c7f (diff) | |
download | uhd-73171698b55133aaeab461781476b02c4416da8f.tar.gz uhd-73171698b55133aaeab461781476b02c4416da8f.tar.bz2 uhd-73171698b55133aaeab461781476b02c4416da8f.zip |
log: Add convenience macros for logging from RFNoC blocks
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/utils/log.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/host/include/uhd/utils/log.hpp b/host/include/uhd/utils/log.hpp index 89cb6b84d..9ea59d59a 100644 --- a/host/include/uhd/utils/log.hpp +++ b/host/include/uhd/utils/log.hpp @@ -222,6 +222,13 @@ UHD_API void set_logger_level(const std::string& logger, uhd::log::severity_leve # define UHD_LOG_FATAL(component, message) #endif +#define RFNOC_LOG_TRACE(message) UHD_LOG_TRACE(this->get_unique_id(), message) +#define RFNOC_LOG_DEBUG(message) UHD_LOG_DEBUG(this->get_unique_id(), message) +#define RFNOC_LOG_INFO(message) UHD_LOG_INFO(this->get_unique_id(), message) +#define RFNOC_LOG_WARNING(message) UHD_LOG_WARNING(this->get_unique_id(), message) +#define RFNOC_LOG_ERROR(message) UHD_LOG_ERROR(this->get_unique_id(), message) +#define RFNOC_LOG_FATAL(message) UHD_LOG_FATAL(this->get_unique_id(), message) + #ifndef UHD_LOG_FASTPATH_DISABLE //! Extra-fast logging macro for when speed matters. // No metadata is tracked. Only the message is displayed. This does not go |