Loading...
Searching...
No Matches
Logger.hpp
Go to the documentation of this file.
#pragma once
#include <SoapySDR/Logger.h>
#include <string>
#include <cstdarg>
namespace SoapySDR
{
typedef SoapySDRLogLevel LogLevel;
SOAPY_SDR_API void log(const LogLevel logLevel, const std::string &message);
SOAPY_SDR_API void vlogf(const SoapySDRLogLevel logLevel, const char *format, va_list argList);
static inline void logf(const SoapySDRLogLevel logLevel, const char *format, ...)
{
va_list argList;
va_start(argList, format);
SoapySDR::vlogf(logLevel, format, argList);
va_end(argList);
}
typedef SoapySDRLogHandler LogHandler;
SOAPY_SDR_API void registerLogHandler(const LogHandler &handler);
SOAPY_SDR_API void setLogLevel(const LogLevel logLevel);
}
SOAPY_SDR_API
#define SOAPY_SDR_API
Definition Config.h:41
Logger.h
SoapySDRLogLevel
SoapySDRLogLevel
Definition Logger.h:30
SoapySDRLogHandler
void(* SoapySDRLogHandler)(const SoapySDRLogLevel logLevel, const char *message)
Definition Logger.h:80
SoapySDR
Definition ConverterPrimitives.hpp:15
SoapySDR::LogLevel
SoapySDRLogLevel LogLevel
Definition Logger.hpp:21
SoapySDR::vlogf
SOAPY_SDR_API void vlogf(const SoapySDRLogLevel logLevel, const char *format, va_list argList)
SoapySDR::setLogLevel
SOAPY_SDR_API void setLogLevel(const LogLevel logLevel)
SoapySDR::registerLogHandler
SOAPY_SDR_API void registerLogHandler(const LogHandler &handler)
SoapySDR::StringToSetting
Type StringToSetting(const std::string &s)
Definition Types.hpp:240
SoapySDR::LogHandler
SoapySDRLogHandler LogHandler
Definition Logger.hpp:54
SoapySDR::log
SOAPY_SDR_API void log(const LogLevel logLevel, const std::string &message)
SoapySDR::logf
static void logf(const SoapySDRLogLevel logLevel, const char *format,...)
Definition Logger.hpp:43