|
girara
|
Go to the source code of this file.
Macros | |
| #define | girara_debug(...) |
| #define | girara_info(...) |
| #define | girara_warning(...) |
| #define | girara_error(...) |
Enumerations | |
| enum | girara_log_level_t { GIRARA_DEBUG , GIRARA_INFO , GIRARA_WARNING , GIRARA_ERROR } |
Functions | |
| void | girara_log (const char *location, const char *function, girara_log_level_t level, const char *format,...) GIRARA_PRINTF(4 |
| void | girara_vlog (const char *location, const char *function, girara_log_level_t level, const char *format, va_list ap) GIRARA_VISIBLE |
| girara_log_level_t | girara_get_log_level (void) GIRARA_VISIBLE |
| void | girara_set_log_level (girara_log_level_t level) GIRARA_VISIBLE |
Variables | |
| void | GIRARA_VISIBLE |
| #define girara_debug | ( | ... | ) |
Prints a debug message. The arguments are passed to girara_log as last argument.
| #define girara_error | ( | ... | ) |
Prints an error message. The arguments are passed to girara_log as last argument.
| #define girara_info | ( | ... | ) |
Prints an info message. The arguments are passed to girara_log as last argument.
| #define girara_warning | ( | ... | ) |
Prints a warning message. The arguments are passed to girara_log as last argument.
| enum girara_log_level_t |
| girara_log_level_t girara_get_log_level | ( | void | ) |
Get the log level.
| void girara_log | ( | const char * | location, |
| const char * | function, | ||
| girara_log_level_t | level, | ||
| const char * | format, | ||
| ... ) |
Print a message.
| location | location of the call |
| function | calling function |
| level | The log level of the message. |
| format | printf like format string |
| void girara_set_log_level | ( | girara_log_level_t | level | ) |
Set the log level. Any message with a level lower than the log level will be discarded.
| level | The new log level. |
| void girara_vlog | ( | const char * | location, |
| const char * | function, | ||
| girara_log_level_t | level, | ||
| const char * | format, | ||
| va_list | ap ) |
Print a message.
| location | location of the call |
| function | calling function |
| level | The log level of the message. |
| format | printf like format string |
| ap | varag list |