|
duvc-ctl 2.0.0
USB Video Class Camera Control Library
|
Structured logging interface for duvc-ctl. More...
#include <functional>#include <string>Go to the source code of this file.
Namespaces | |
| namespace | duvc |
Macros | |
| #define | DUVC_LOG_DEBUG(msg) duvc::log_debug(msg) |
| Log debug message macro. | |
| #define | DUVC_LOG_INFO(msg) duvc::log_info(msg) |
| Log info message macro. | |
| #define | DUVC_LOG_WARNING(msg) duvc::log_warning(msg) |
| Log warning message macro. | |
| #define | DUVC_LOG_ERROR(msg) duvc::log_error(msg) |
| Log error message macro. | |
| #define | DUVC_LOG_CRITICAL(msg) duvc::log_critical(msg) |
| Log critical message macro. | |
Typedefs | |
| using | duvc::LogCallback |
| Log message callback type. | |
Enumerations | |
| enum class | duvc::LogLevel { duvc::Debug = 0 , duvc::Info = 1 , duvc::Warning = 2 , duvc::Error = 3 , duvc::Critical = 4 } |
| Log levels. More... | |
Functions | |
| const char * | duvc::to_string (LogLevel level) |
| Convert log level to string. | |
| void | duvc::set_log_callback (LogCallback callback) |
| Set global log callback. | |
| void | duvc::set_log_level (LogLevel level) |
| Set minimum log level. | |
| LogLevel | duvc::get_log_level () |
| Get current minimum log level. | |
| void | duvc::log_message (LogLevel level, const std::string &message) |
| Log a message. | |
| void | duvc::log_debug (const std::string &message) |
| Log debug message. | |
| void | duvc::log_info (const std::string &message) |
| Log info message. | |
| void | duvc::log_warning (const std::string &message) |
| Log warning message. | |
| void | duvc::log_error (const std::string &message) |
| Log error message. | |
| void | duvc::log_critical (const std::string &message) |
| Log critical message. | |
Structured logging interface for duvc-ctl.
Definition in file logging.h.
| #define DUVC_LOG_CRITICAL | ( | msg | ) | duvc::log_critical(msg) |
| #define DUVC_LOG_DEBUG | ( | msg | ) | duvc::log_debug(msg) |
| #define DUVC_LOG_ERROR | ( | msg | ) | duvc::log_error(msg) |
| #define DUVC_LOG_INFO | ( | msg | ) | duvc::log_info(msg) |
| #define DUVC_LOG_WARNING | ( | msg | ) | duvc::log_warning(msg) |