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>>;
59 mutable std::mutex map_mutex;
60 bool has_regex =
false;
In-Memory Logger.
Definition dictionary_logger_backend.h:36
void flush_() override
Definition dictionary_logger_backend.h:56
log_map get_map() const
Definition dictionary_logger_backend.h:50
dictionary_logger_backend(std::regex src_regex)
Create logger that filters according to the specified regex.
void sink_it_(const spdlog::details::log_msg &message) override
std::unordered_map< std::string, std::set< log_entry > > log_map
Definition dictionary_logger_backend.h:39
dictionary_logger_backend()
Create unfiltered logger.
~dictionary_logger_backend() override
Definition dictionary_logger_backend.h:52
std::pair< spdlog::log_clock::time_point, std::string > log_entry
Definition dictionary_logger_backend.h:38
Message class.
Definition message.h:28
#define GR_RUNTIME_API
Definition gnuradio-runtime/include/gnuradio/api.h:18
GNU Radio logging wrapper.
Definition basic_block.h:29