Function

Grl-0.3Grllog_configureSince 0.1.7

  • 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

    Parameters

    • config: string

      A string describing the wanted log configuration

    Returns void

    0.1.7