SoapySDR 0.8.1-g640ac414
Vendor and platform neutral SDR interface library
Loading...
Searching...
No Matches
Logger.hpp
Go to the documentation of this file.
1
13
14#pragma once
15#include <SoapySDR/Logger.h>
16#include <string>
17#include <cstdarg>
18
19namespace SoapySDR
20{
21
23
29SOAPY_SDR_API void log(const LogLevel logLevel, const std::string &message);
30
37SOAPY_SDR_API void vlogf(const SoapySDRLogLevel logLevel, const char *format, va_list argList);
38
44static inline void logf(const SoapySDRLogLevel logLevel, const char *format, ...)
45{
46 va_list argList;
47 va_start(argList, format);
48 SoapySDR::vlogf(logLevel, format, argList);
49 va_end(argList);
50}
51
56
63
68SOAPY_SDR_API void setLogLevel(const LogLevel logLevel);
69
74
75}
#define SOAPY_SDR_API
Definition Config.h:41
SoapySDRLogLevel
Definition Logger.h:31
void(* SoapySDRLogHandler)(const SoapySDRLogLevel logLevel, const char *message)
Definition Logger.h:81
Definition ConverterPrimitives.hpp:15
SoapySDRLogLevel LogLevel
Definition Logger.hpp:22
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)
SoapySDRLogHandler LogHandler
Definition Logger.hpp:55
SOAPY_SDR_API LogLevel getLogLevel(void)
SOAPY_SDR_API void log(const LogLevel logLevel, const std::string &message)
static void logf(const SoapySDRLogLevel logLevel, const char *format,...)
Definition Logger.hpp:44