Logging macros.
More...
#include <glib.h>
Go to the source code of this file.
|
#define | LOG(level, msg,...) _log_wrap(level, "[" LOG_TAG "] " msg, ##__VA_ARGS__) |
| Log with user-specified GLogLevelFlags. More...
|
|
#define | LOGD(...) LOG(G_LOG_LEVEL_DEBUG, ##__VA_ARGS__) |
| Log at DEBUG level. More...
|
|
#define | LOGI(...) LOG(G_LOG_LEVEL_INFO, ##__VA_ARGS__) |
| Log at INFO level. More...
|
|
#define | LOGM(...) LOG(G_LOG_LEVEL_MESSAGE, ##__VA_ARGS__) |
| Log at MESSAGE level. More...
|
|
#define | LOGW(...) LOG(G_LOG_LEVEL_WARNING, ##__VA_ARGS__) |
| Log at WARNING level. More...
|
|
#define | LOGC(...) LOG(G_LOG_LEVEL_CRITICAL, ##__VA_ARGS__) |
| Log at CRITICAL level. More...
|
|
#define | LOGE(...) LOG(G_LOG_LEVEL_ERROR, ##__VA_ARGS__) |
| Log at ERROR level (makes the application abort) More...
|
|
Logging macros.
Definition in file logger.h.
#define LOG |
( |
|
level, |
|
|
|
msg, |
|
|
|
... |
|
) |
| _log_wrap(level, "[" LOG_TAG "] " msg, ##__VA_ARGS__) |
Log with user-specified GLogLevelFlags.
- Parameters
-
level | log levels |
msg | format string |
... | format string args |
Definition at line 19 of file logger.h.
#define LOGC |
( |
|
... | ) |
LOG(G_LOG_LEVEL_CRITICAL, ##__VA_ARGS__) |
Log at CRITICAL level.
Definition at line 29 of file logger.h.
#define LOGD |
( |
|
... | ) |
LOG(G_LOG_LEVEL_DEBUG, ##__VA_ARGS__) |
Log at DEBUG level.
Definition at line 21 of file logger.h.
#define LOGE |
( |
|
... | ) |
LOG(G_LOG_LEVEL_ERROR, ##__VA_ARGS__) |
Log at ERROR level (makes the application abort)
Definition at line 31 of file logger.h.
#define LOGI |
( |
|
... | ) |
LOG(G_LOG_LEVEL_INFO, ##__VA_ARGS__) |
Log at INFO level.
Definition at line 23 of file logger.h.
#define LOGM |
( |
|
... | ) |
LOG(G_LOG_LEVEL_MESSAGE, ##__VA_ARGS__) |
Log at MESSAGE level.
Definition at line 25 of file logger.h.
#define LOGW |
( |
|
... | ) |
LOG(G_LOG_LEVEL_WARNING, ##__VA_ARGS__) |
Log at WARNING level.
Definition at line 27 of file logger.h.
void _log_wrap |
( |
GLogLevelFlags |
level, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Setup the log handler
Definition at line 76 of file logger.c.