USRP Hardware Driver and USRP Manual Version: 3.15.0.0-MacPorts-Release
UHD and USRP Manual
 
Loading...
Searching...
No Matches
log_add.hpp
Go to the documentation of this file.
1//
2// Copyright 2017 Ettus Research (National Instruments Corp.)
3//
4// SPDX-License-Identifier: GPL-3.0-or-later
5//
6
7// Note: Including this file requires C++11 features enabled.
8
9#ifndef INCLUDED_UHD_UTILS_LOG_ADD_HPP
10#define INCLUDED_UHD_UTILS_LOG_ADD_HPP
11
12#include <uhd/config.hpp>
13#include <uhd/utils/log.hpp>
14#include <functional>
15
16namespace uhd { namespace log {
17
23typedef std::function<void(const uhd::log::logging_info&)> log_fn_t;
24
30UHD_API void add_logger(const std::string& key, log_fn_t logger_fn);
31}} /* namespace uhd::log */
32
33#endif /* INCLUDED_UHD_UTILS_LOG_ADD_HPP */
#define UHD_API
Definition config.h:68
std::function< void(const uhd::log::logging_info &)> log_fn_t
Definition log_add.hpp:23
UHD_API void add_logger(const std::string &key, log_fn_t logger_fn)
Definition build_info.hpp:13
Definition log.hpp:120