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

Define log domain #260

Closed
peteruithoven opened this issue May 8, 2021 · 0 comments · Fixed by #261
Closed

Define log domain #260

peteruithoven opened this issue May 8, 2021 · 0 comments · Fixed by #261
Labels
Bitesize Small, self-contained issue. Good for newcomers, and/or should be an easy fix. Priority: Wishlist Not a priority, but something that might be nice

Comments

@peteruithoven
Copy link
Collaborator

Problem

It's currently quite hard to debug wingpanel indicators as there are many indicators that add log messages. There isn't a good way to filter this to a specific indicator.

Proposal

We could define log domains:
https://developer.gnome.org/glib/stable/glib-Message-Logging.html#log-domains

This enables filtering log messages using G_MESSAGES_DEBUG, to do do something like the following to only get the logs from a specific indicator and the wingpanel:

G_MESSAGES_DEBUG=io.elementary.wingpanel.bluetooth wingpanel

Prior Art

We've added this to the bluetooth indicator
elementary/wingpanel-indicator-bluetooth#81

@peteruithoven peteruithoven added Priority: Wishlist Not a priority, but something that might be nice Bitesize Small, self-contained issue. Good for newcomers, and/or should be an easy fix. labels May 8, 2021
peteruithoven added a commit that referenced this issue May 8, 2021
jeremypw pushed a commit that referenced this issue May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bitesize Small, self-contained issue. Good for newcomers, and/or should be an easy fix. Priority: Wishlist Not a priority, but something that might be nice
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant