#include <glib.h>
#include <stdarg.h>
#include "macros.h"
Go to the source code of this file.
◆ girara_debug
| #define girara_debug |
( |
| ... | ) |
|
Value:
void girara_log(const char *location, const char *function, girara_log_level_t level, const char *format,...) GIRARA_PRINTF(4
Prints a debug message. The arguments are passed to girara_log as last argument.
Definition at line 25 of file log.h.
◆ girara_error
| #define girara_error |
( |
| ... | ) |
|
Value:Prints an error message. The arguments are passed to girara_log as last argument.
Definition at line 40 of file log.h.
◆ girara_info
| #define girara_info |
( |
| ... | ) |
|
Value:Prints an info message. The arguments are passed to girara_log as last argument.
Definition at line 30 of file log.h.
◆ girara_warning
| #define girara_warning |
( |
| ... | ) |
|
Value:Prints a warning message. The arguments are passed to girara_log as last argument.
Definition at line 35 of file log.h.
◆ girara_log_level_t
Log levels
| Enumerator |
|---|
| GIRARA_DEBUG | |
| GIRARA_INFO |
Debug messages
|
| GIRARA_WARNING |
Information debug output
|
| GIRARA_ERROR |
Warning level
Error
|
Definition at line 14 of file log.h.
◆ girara_get_log_level()
Get the log level.
- Returns
- The log level.
◆ girara_log()
| void girara_log |
( |
const char * | location, |
|
|
const char * | function, |
|
|
girara_log_level_t | level, |
|
|
const char * | format, |
|
|
| ... ) |
Print a message.
- Parameters
-
| location | location of the call |
| function | calling function |
| level | The log level of the message. |
| format | printf like format string |
◆ girara_set_log_level()
Set the log level. Any message with a level lower than the log level will be discarded.
- Parameters
-
◆ girara_vlog()
| void girara_vlog |
( |
const char * | location, |
|
|
const char * | function, |
|
|
girara_log_level_t | level, |
|
|
const char * | format, |
|
|
va_list | ap ) |
Print a message.
- Parameters
-
| location | location of the call |
| function | calling function |
| level | The log level of the message. |
| format | printf like format string |
| ap | varag list |
◆ GIRARA_VISIBLE
Definition at line 51 of file log.h.