Skip to content

Add binding for QMessageLogger#1398

Open
jnbooth wants to merge 5 commits intoKDAB:mainfrom
jnbooth:qmessagelogger
Open

Add binding for QMessageLogger#1398
jnbooth wants to merge 5 commits intoKDAB:mainfrom
jnbooth:qmessagelogger

Conversation

@jnbooth
Copy link
Contributor

@jnbooth jnbooth commented Jan 28, 2026

The functionality exposed by qtlogging.rs solely relies on undocumented Qt internals and doesn't respect category disabling. This PR adds an alternative by introducing bindings for QMessageLogger, which is the intended user-facing functionality for logging with Qt. It also adds corresponding macros, e.g. q_debug!("x: {x}, y: {y}"). Additionally, the documentation for the class provides an example for how to use it with the log crate.

@codecov
Copy link

codecov bot commented Jan 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (55106f0) to head (4f5fd2f).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1398   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           75        75           
  Lines        13124     13124           
=========================================
  Hits         13124     13124           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant