 |
GNU Radio C++ API Reference
3.10.12.0
The Free & Open Software Radio Ecosystem
|
|
Go to the documentation of this file.
10 #ifndef INCLUDED_DICTIONARY_LOGGER_BACKEND_H
11 #define INCLUDED_DICTIONARY_LOGGER_BACKEND_H
12 #include <spdlog/common.h>
13 #include <spdlog/details/null_mutex.h>
14 #include <spdlog/sinks/base_sink.h>
15 #include <unordered_map>
35 :
public spdlog::sinks::base_sink<spdlog::details::null_mutex>
38 using log_entry = std::pair<spdlog::log_clock::time_point, std::string>;
39 using log_map = std::unordered_map<std::string, std::set<log_entry>>;
60 bool has_regex =
false;
std::pair< spdlog::log_clock::time_point, std::string > log_entry
Definition: dictionary_logger_backend.h:38
Message class.
Definition: message.h:28
dictionary_logger_backend()
Create unfiltered logger.
void flush_() override
Definition: dictionary_logger_backend.h:56
std::unordered_map< std::string, std::set< log_entry > > log_map
Definition: dictionary_logger_backend.h:39
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:18
void sink_it_(const spdlog::details::log_msg &message) override
boost::mutex mutex
Definition: thread.h:37
log_map get_map() const
Definition: dictionary_logger_backend.h:50
~dictionary_logger_backend() override
Definition: dictionary_logger_backend.h:52
GNU Radio logging wrapper.
Definition: basic_block.h:29
dictionary_logger_backend(std::regex src_regex)
Create logger that filters according to the specified regex.
In-Memory Logger.
Definition: dictionary_logger_backend.h:36