VMUPro SDK v1.0.0
Application Development SDK for the VMUPro
|
VMUPro Logging API. More...
Go to the source code of this file.
Enumerations | |
enum | vmupro_log_level_t { VMUPRO_LOG_NONE = 0 , VMUPRO_LOG_ERROR , VMUPRO_LOG_WARN , VMUPRO_LOG_INFO , VMUPRO_LOG_DEBUG } |
Log level enumeration. More... | |
Functions | |
void | vmupro_set_log_level (vmupro_log_level_t level) |
Set the global log level. | |
void | vmupro_log (vmupro_log_level_t level, const char *tag, const char *fmt,...) |
Output a formatted log message. | |
VMUPro Logging API.
This header provides the logging API for the VMUPro SDK. It includes functions for setting log levels and outputting formatted log messages with different severity levels.
Definition in file vmupro_log.h.
enum vmupro_log_level_t |
Log level enumeration.
Defines the different logging levels available in the VMUPro SDK. Higher values indicate more verbose logging.
Definition at line 28 of file vmupro_log.h.
void vmupro_log | ( | vmupro_log_level_t | level, |
const char * | tag, | ||
const char * | fmt, | ||
... | |||
) |
Output a formatted log message.
Outputs a formatted log message with the specified level and tag. The message will only be output if the level is greater than or equal to the current global log level.
level | The log level for this message |
tag | A string tag to identify the source of the log message |
fmt | Printf-style format string |
... | Variable arguments for the format string |
void vmupro_set_log_level | ( | vmupro_log_level_t | level | ) |
Set the global log level.
Sets the minimum log level for output. Messages with a level lower than the set level will be filtered out.
level | The minimum log level to output |