gr::dictionary_logger_backend
spdlog::sinks::base_sink< spdlog::details::null_mutex >
gnuradio/dictionary_logger_backend.h
std::pair< spdlog::log_clock::time_point, std::string > using gr::dictionary_logger_backend::log_entry = std::pair<spdlog::log_clock::time_point, std::string> log_entry gr::dictionary_logger_backend::log_entry
std::unordered_map< std::string, std::set< log_entry > > using gr::dictionary_logger_backend::log_map = std::unordered_map<std::string, std::set<log_entry>> log_map gr::dictionary_logger_backend::log_map
std::mutex std::mutex gr::dictionary_logger_backend::map_mutex map_mutex gr::dictionary_logger_backend::map_mutex
bool bool gr::dictionary_logger_backend::has_regex has_regex gr::dictionary_logger_backend::has_regex = false
std::regex std::regex gr::dictionary_logger_backend::src_regex src_regex gr::dictionary_logger_backend::src_regex
log_map log_map gr::dictionary_logger_backend::log_entries log_entries gr::dictionary_logger_backend::log_entries
gr::dictionary_logger_backend::dictionary_logger_backend
()
dictionary_logger_backend
gr::dictionary_logger_backend::dictionary_logger_backend

Create unfiltered logger.

gr::dictionary_logger_backend::dictionary_logger_backend
(std::regex src_regex)
dictionary_logger_backend
gr::dictionary_logger_backend::dictionary_logger_backend
std::regex src_regex

Create logger that filters according to the specified regex.

log_map log_map gr::dictionary_logger_backend::get_map () const get_map gr::dictionary_logger_backend::get_map
gr::dictionary_logger_backend::~dictionary_logger_backend
() override
~dictionary_logger_backend
gr::dictionary_logger_backend::~dictionary_logger_backend
void void gr::dictionary_logger_backend::sink_it_ (const spdlog::details::log_msg &message) override sink_it_ gr::dictionary_logger_backend::sink_it_ const spdlog::details::log_msg & message
void void gr::dictionary_logger_backend::flush_ () override flush_ gr::dictionary_logger_backend::flush_

In-Memory Logger.

Logs the messages passing by, sorted by the name of the logger logging them.

Use by adding a `std::shared_ptr` to this to the logging system, i.e., make a logger `auto new_backend = std::make_shared<gr::dictionary_logger_backend>();` and use it through: `gr::logging.singleton()->add_default_backend(new_backend);`

After running your work load, get the map and fetch the logged messages from that.

gr::dictionary_logger_backend
spdlog::sinks::base_sink< spdlog::details::null_mutex >
gr::dictionary_logger_backend
spdlog::sinks::base_sink< spdlog::details::null_mutex >
- gr::dictionary_logger_backend
  dictionary_logger_backend
- gr::dictionary_logger_backend
  dictionary_logger_backend
- gr::dictionary_logger_backend
  flush_
- gr::dictionary_logger_backend
  get_map
- gr::dictionary_logger_backend
  has_regex
- gr::dictionary_logger_backend
  log_entries
- gr::dictionary_logger_backend
  log_entry
- gr::dictionary_logger_backend
  log_map
- gr::dictionary_logger_backend
  map_mutex
- gr::dictionary_logger_backend
  sink_it_
- gr::dictionary_logger_backend
  src_regex
- gr::dictionary_logger_backend
  ~dictionary_logger_backend