Go to the source code of this file.
|
| #define | log_debug(...) (log_message(_LOG_LEVEL_DEBUG, __FILE__, __LINE__, __VA_ARGS__)) |
| |
| #define | log_info(...) (log_message(_LOG_LEVEL_INFO, __FILE__, __LINE__, __VA_ARGS__)) |
| |
| #define | log_warning(...) (log_message(_LOG_LEVEL_WARNING, __FILE__, __LINE__, __VA_ARGS__)) |
| |
| #define | log_error(...) (log_message(_LOG_LEVEL_ERROR, __FILE__, __LINE__, __VA_ARGS__)) |
| |
◆ log_levels_t
| Enumerator |
|---|
| _LOG_LEVEL_DEBUG | |
| _LOG_LEVEL_INFO | |
| _LOG_LEVEL_WARNING | |
| _LOG_LEVEL_ERROR | |
◆ log_message()
| void log_message |
( |
const log_levels_t |
log_level, |
|
|
const char * |
file_name, |
|
|
const int |
line, |
|
|
const char * |
message, |
|
|
|
... |
|
) |
| |
Prints to the standard output the given message formated with the given parameters.
- Parameters
-
| log_level | The message importance level, this is used to include a keyword (DEBUG, INFO, WARNING and ERROR) |
| file_name | The file name of the caller |
| line | The line of the call |
| message | The text to print |