Functions to write logs into console.
More...
|
#define | LOG_VERBOSE(FMT, ...) LogMessage(VERBOSE, FMT, ## __VA_ARGS__) |
|
#define | LOG_DEBUG(FMT, ...) LogMessage(DEBUG, FMT, ## __VA_ARGS__) |
|
#define | LOG_INFO(FMT, ...) LogMessage(INFO, FMT, ## __VA_ARGS__) |
|
#define | LOG_WARN(FMT, ...) LogMessage(WARN, FMT, ## __VA_ARGS__) |
|
#define | LOG_ERROR(FMT, ...) LogMessage(ERROR, FMT, ## __VA_ARGS__) |
|
#define | LOG_CRITICAL(FMT, ...) LogMessage(CRITICAL, FMT, ## __VA_ARGS__) |
|
|
typedef enum LogLevel | LogLevel_t |
|
|
enum | LogLevel {
VERBOSE = 1,
DEBUG,
INFO,
WARN,
ERROR,
CRITICAL
} |
|
|
WHYCPP_C_API void | LogMessage (LogLevel_t level, const char *fmt,...) |
|
WHYCPP_C_API void | SetLogLevel (LogLevel_t priority) |
|
Functions to write logs into console.
WHYCPP_C_API void LogMessage |
( |
LogLevel_t |
level, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Pri32 a message to the console. It works like printf.
- Parameters
-
level | |
fmt | printf-style format string |
... | |
WHYCPP_C_API void SetLogLevel |
( |
LogLevel_t |
priority | ) |
|
Set global application log level. To see library messages you need to set DEBUG level.
- Parameters
-