USRP Hardware Driver and Device Manual Version: 4.11.0.0-0-unknown
UHD and USRP Manual
Loading...
Searching...
No Matches
log_add_impl.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#pragma once
8
9#include <uhd/config.hpp>
10#include <uhd/utils/log.hpp>
11#include <functional>
12
13namespace uhd { namespace log {
14
20using log_fn_t = std::function<void(const uhd::log::detail::logging_info&)>;
21
27UHD_API void add_logger(const std::string& key, log_fn_t logger_fn);
28
29}} /* namespace uhd::log */
#define UHD_API
Definition config.h:87
Definition log.hpp:113
std::function< void(const uhd::log::detail::logging_info &)> log_fn_t
Definition log_add_impl.hpp:20
void add_logger(const std::string &key, log_fn_legacy_t logger_fn)
Definition log_add.hpp:62
Definition build_info.hpp:12
Definition log.hpp:145