#include <glib.h>
#include <stdarg.h>
#include "macros.h"
Go to the source code of this file.
|
#define | girara_debug(...) girara_log(G_STRLOC, __func__, GIRARA_DEBUG, __VA_ARGS__) |
|
#define | girara_info(...) girara_log(G_STRLOC, __func__, GIRARA_INFO, __VA_ARGS__) |
|
#define | girara_warning(...) girara_log(G_STRLOC, __func__, GIRARA_WARNING, __VA_ARGS__) |
|
#define | girara_error(...) girara_log(G_STRLOC, __func__, GIRARA_ERROR, __VA_ARGS__) |
|
◆ girara_debug
Prints a debug message. The arguments are passed to girara_log as last argument.
Definition at line 26 of file log.h.
◆ girara_error
Prints an error message. The arguments are passed to girara_log as last argument.
Definition at line 41 of file log.h.
◆ girara_info
Prints an info message. The arguments are passed to girara_log as last argument.
Definition at line 31 of file log.h.
◆ girara_warning
Prints a warning message. The arguments are passed to girara_log as last argument.
Definition at line 36 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 52 of file log.h.