Top |
#define | GRL_LOG() |
#define | GRL_LOG_DOMAIN() |
#define | GRL_LOG_DOMAIN_EXTERN() |
#define | GRL_LOG_DOMAIN_FREE() |
#define | GRL_LOG_DOMAIN_INIT() |
#define | GRL_LOG_DOMAIN_STATIC() |
#define | GRL_DEBUG() |
#define | GRL_ERROR() |
#define | GRL_INFO() |
#define | GRL_MESSAGE() |
#define | GRL_WARNING() |
void | grl_log () |
void | grl_log_configure () |
void | grl_log_domain_free () |
GrlLogDomain * | grl_log_domain_new () |
#define GRL_LOG(domain, level, ...)
Outputs a debugging message. This is the most general macro for outputting debugging messages. You will probably want to use one of the ones described below.
#define GRL_LOG_DOMAIN(domain) GrlLogDomain *domain = NULL
Defines a GrlLogDomain variable.
#define GRL_LOG_DOMAIN_EXTERN(domain) extern GrlLogDomain *domain
Declares a GrlLogDomain variable as extern. Use in header files.
#define GRL_LOG_DOMAIN_INIT(domain, name)
Creates a new GrlLogDomain with the given name.
#define GRL_LOG_DOMAIN_STATIC(domain) static GrlLogDomain *domain = NULL
Defines a static GrlLogDomain variable.
void grl_log (GrlLogDomain *domain
,GrlLogLevel level
,const gchar *strloc
,const gchar *format
,...
);
Send a log message.
domain |
a domain |
|
level |
log level |
|
strloc |
string, usually line of code where function is invoked |
|
format |
log message |
|
... |
parameters to insert in the log message |
Since: 0.1.7
void
grl_log_configure (const gchar *config
);
Configure a set of log domains. The default configuration is to display warning and error messages only for all the log domains.
The configuration string follows the following grammar:
1 2 3 4 5 6 |
config-list: config | config ',' config-list config: domain ':' level domain: '*' | [a-zA-Z0-9]+ level: '*' | '-' | named-level | num-level named-level: "none" | "error" | "warning" | "message" | "info" | "debug" num-level: [0-5] |
examples:
"*:*": maximum verbosity for all the log domains
"*:-": don't print any message
"media-source:debug,metadata-source:debug": prints debug, info, message warning and error messages for the media-source and metadata-source log domains
Since: 0.1.7
void
grl_log_domain_free (GrlLogDomain *domain
);
Releases domain
.
Since: 0.1.7