Function

Grllog_configure

since: 0.1.7

Declaration [src]

void
grl_log_configure (
  const gchar* config
)

Description [src]

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:

  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

It’s possible to override the log configuration at runtime by defining the GRL_DEBUG environment variable to a configuration string as described above

Available since: 0.1.7

Parameters

config

Type: const gchar*

A string describing the wanted log configuration.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.