G_MESSAGES_DEBUG doesn't allow filtering by superdomain
The documentation has recommendations for log domains, which go as far as suggesting sub-domains:
Log domains must be unique, and it is recommended that they are the application or library name, optionally followed by a hyphen and a sub-domain name. For example, bloatpad or bloatpad-io.
However, if I run G_MESSAGES_DEBUG=bloatpad
, then I will not get debug output from the bloatpad-io
.
In other words, if my application has multiple log domains, either I have to list them all in G_MESSAGES_DEBUG
, or I can set G_MESSAGES_DEBUG=all
, but in the later case I also get debug messages from libraries which I didn't want to get.
I know the documentation doesn't say it works like that, but it might be useful if it did. Is this a terrible idea? I can prepare a merge request if you think this behaviour is desirable.