SoapySDR 0.8.1-ok1
Vendor and platform neutral SDR interface library
Loading...
Searching...
No Matches
Logger.hpp
Go to the documentation of this file.
1
12
13#pragma once
14#include <SoapySDR/Logger.h>
15#include <string>
16#include <cstdarg>
17
18namespace SoapySDR
19{
20
22
28SOAPY_SDR_API void log(const LogLevel logLevel, const std::string &message);
29
37
43static inline void logf(const SoapySDRLogLevel logLevel, const char *format, ...)
44{
49}
50
55
62
68
69}
#define SOAPY_SDR_API
Definition Config.h:41
SoapySDRLogLevel
Definition Logger.h:30
void(* SoapySDRLogHandler)(const SoapySDRLogLevel logLevel, const char *message)
Definition Logger.h:80
Definition ConverterPrimitives.hpp:15
SoapySDRLogLevel LogLevel
Definition Logger.hpp:21
SOAPY_SDR_API void vlogf(const SoapySDRLogLevel logLevel, const char *format, va_list argList)
SOAPY_SDR_API void setLogLevel(const LogLevel logLevel)
SOAPY_SDR_API void registerLogHandler(const LogHandler &handler)
Type StringToSetting(const std::string &s)
Definition Types.hpp:240
SoapySDRLogHandler LogHandler
Definition Logger.hpp:54
SOAPY_SDR_API void log(const LogLevel logLevel, const std::string &message)
static void logf(const SoapySDRLogLevel logLevel, const char *format,...)
Definition Logger.hpp:43