Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify domain name of switchboard and plugs #59

Open
tintou opened this issue Mar 20, 2018 · 1 comment
Open

Specify domain name of switchboard and plugs #59

tintou opened this issue Mar 20, 2018 · 1 comment
Labels
Status: Confirmed Verified by someone other than the reporter

Comments

@tintou
Copy link
Member

tintou commented Mar 20, 2018

A recommended GLib way to use and debug applications & plugins is to use logging domain.
We should really start to add the logging domain to switchboard and its plugs.
Two main reasons:

  • You then know where a debug message comes from.
  • You can run G_MESSAGES_DEBUG=my-log-domain-name switchboard to only show the wanted debug messages.

How to do it?
Simply add this in the beginning of our files:
#define G_LOG_DOMAIN "my-log-domain-name"
public const string G_LOG_DOMAIN = "my-log-domain-name"
Or define it project-wide using meson flags.

@arshubham
Copy link
Collaborator

@tintou I would like to take this up. Any decision been reached over this?

@lenemter lenemter added the Status: Confirmed Verified by someone other than the reporter label Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Confirmed Verified by someone other than the reporter
Projects
None yet
Development

No branches or pull requests

3 participants