Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 859
    • Issues 859
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 35
    • Merge requests 35
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !2330

gdebugcontroller: Add debug controller API and D-Bus implementation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Philip Withnall requested to merge pwithnall/glib:1190-debug-interface into main Nov 11, 2021
  • Overview 21
  • Commits 2
  • Pipelines 5
  • Changes 13

This is intended to provide a uniform interface for controlling whether the debug output from an application (or service) is emitted, typically to journald, but actually to wherever the application chooses to output it.

The main implementation of GDebugController is GDebugControllerDBus, which is intended to be used on Linux. Other implementations may be added in future for other platforms, or larger applications may want to provide their own implementation which integrates with their ecosystem.

The GDebugControllerDBus implementation exposes a D-Bus interface at /org/freedesktop/Debugging with a method to enable or disable debug output at runtime.

This could be used by external harnesses, such as GNOME Builder or systemd, to give a uniform way to get debug output from an application.

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Fixes: #1190 (closed)

Closes #1190 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 1190-debug-interface