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

Closed
tintou opened this issue Mar 20, 2018 · 3 comments
Closed

Specify domain name of switchboard and plugs #59

tintou opened this issue Mar 20, 2018 · 3 comments
Assignees
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
@danirabbit
Copy link
Member

We already have log domain since #75 it looks like. So just need to add log domains to the individual plugins. Looks like in the panel we do this like:

add_project_arguments('-DG_LOG_DOMAIN="io.elementary.wingpanel.power"', language:'c')

danirabbit added a commit to elementary/switchboard-plug-useraccounts that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-applications that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-network that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-mouse-touchpad that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-notifications that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-pantheon-shell that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-parental-controls that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-display that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-locale that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-sharing that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-datetime that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-onlineaccounts that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-keyboard that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-about that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-security-privacy that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-wacom that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-power that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-sound that referenced this issue Oct 22, 2024
@danirabbit danirabbit self-assigned this Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-power that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-keyboard that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-wacom that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-pantheon-shell that referenced this issue Oct 22, 2024
stsdc pushed a commit to elementary/switchboard-plug-display that referenced this issue Oct 22, 2024
stsdc pushed a commit to elementary/switchboard-plug-locale that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-mouse-touchpad that referenced this issue Oct 22, 2024
danirabbit added a commit to elementary/switchboard-plug-applications that referenced this issue Oct 22, 2024
stsdc pushed a commit to elementary/switchboard-plug-datetime that referenced this issue Oct 22, 2024
stsdc pushed a commit to elementary/switchboard-plug-onlineaccounts that referenced this issue Oct 22, 2024
stsdc pushed a commit to elementary/switchboard-plug-sound that referenced this issue Oct 22, 2024
stsdc pushed a commit to elementary/switchboard-plug-network that referenced this issue Oct 22, 2024
@danirabbit
Copy link
Member

Think we got them all 💪

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

4 participants