Loading...
Searching...
No Matches
log_add.hpp
Go to the documentation of this file.
//
// Copyright 2017 Ettus Research (National Instruments Corp.)
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
// Note: Including this file requires C++11 features enabled.
#pragma once
#include <uhd/config.hpp>
#include <uhd/utils/log.hpp>
#include <functional>
namespace uhd { namespace log {
typedef std::function<void(const uhd::log::logging_info&)> log_fn_t;
UHD_API void add_logger(const std::string& key, log_fn_t logger_fn);
}} /* namespace uhd::log */
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
log.hpp
uhd::log
Definition log.hpp:110
uhd::log::log_fn_t
std::function< void(const uhd::log::logging_info &)> log_fn_t
Definition log_add.hpp:22
uhd::log::add_logger
UHD_API void add_logger(const std::string &key, log_fn_t logger_fn)
uhd
Definition build_info.hpp:12
uhd::log::logging_info
Definition log.hpp:138