68void log_debug(
const std::string &message);
74void log_info(
const std::string &message);
86void log_error(
const std::string &message);
101#define DUVC_LOG_DEBUG(msg) duvc::log_debug(msg)
108#define DUVC_LOG_INFO(msg) duvc::log_info(msg)
115#define DUVC_LOG_WARNING(msg) duvc::log_warning(msg)
122#define DUVC_LOG_ERROR(msg) duvc::log_error(msg)
129#define DUVC_LOG_CRITICAL(msg) duvc::log_critical(msg)
Error information with context.
Result type that can contain either a value or an error.
void log_info(const std::string &message)
Log info message.
std::function< void(LogLevel level, const std::string &message)> LogCallback
Log message callback type.
void log_debug(const std::string &message)
Log debug message.
@ Warning
Warning messages.
@ Critical
Critical errors.
@ Info
Informational messages.
@ Debug
Debug information.
void log_error(const std::string &message)
Log error message.
void set_log_callback(LogCallback callback)
Set global log callback.
const char * to_string(CamProp)
Convert camera property enum to string.
void log_message(LogLevel level, const std::string &message)
Log a message.
void log_warning(const std::string &message)
Log warning message.
void log_critical(const std::string &message)
Log critical message.
void set_log_level(LogLevel level)
Set minimum log level.
LogLevel get_log_level()
Get current minimum log level.