![]() |
![]() |
![]() |
GNOME Online Accounts Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
enum GoaLogLevel; void goa_log (GoaLogLevel level
,const gchar *function
,const gchar *location
,const gchar *format
,...
); #define goa_debug (args...) #define goa_info (args...) #define goa_notice (args...) #define goa_warning (args...) #define goa_error (args...)
TODO: explain a bit more what these logging routines do - e.g. that
GOA_LOG_LEVEL_NOTICE
and higher goes to the syslog and so on
etc. etc.
typedef enum { GOA_LOG_LEVEL_DEBUG, GOA_LOG_LEVEL_INFO, GOA_LOG_LEVEL_NOTICE, GOA_LOG_LEVEL_WARNING, GOA_LOG_LEVEL_ERROR } GoaLogLevel;
Logging levels.
void goa_log (GoaLogLevel level
,const gchar *function
,const gchar *location
,const gchar *format
,...
);
Low-level logging function used by goa_debug()
and other macros.
|
A GoaLogLevel. |
|
Pass G_STRFUNC here. |
|
Pass G_STRLOC here. |
|
printf()-style format. |
|
Arguments for format. |
#define goa_debug(args...) goa_log(GOA_LOG_LEVEL_DEBUG, G_STRFUNC, G_STRLOC, args);
Logging macro for GOA_LOG_LEVEL_DEBUG
.
#define goa_info(args...) goa_log(GOA_LOG_LEVEL_INFO, G_STRFUNC, G_STRLOC, args);
Logging macro for GOA_LOG_LEVEL_INFO
.
#define goa_notice(args...) goa_log(GOA_LOG_LEVEL_NOTICE, G_STRFUNC, G_STRLOC, args);
Logging macro for GOA_LOG_LEVEL_NOTICE
.
#define goa_warning(args...) goa_log(GOA_LOG_LEVEL_WARNING, G_STRFUNC, G_STRLOC, args);
Logging macro for GOA_LOG_LEVEL_WARNING
.
#define goa_error(args...) goa_log(GOA_LOG_LEVEL_ERROR, G_STRFUNC, G_STRLOC, args);
Logging macro for GOA_LOG_LEVEL_ERROR
.