Skip to content

Pass QML messages to Rust for logging

Matti Viljanen requested to merge log-qml-to-rust into master

Register a custom Qt message handler which passes the qDebug, qWarning etc. messages to Rust for logging.

Currently all messages are logged as warnings, because this loglevel gets hidden by default, and doesn't log source file and row information, which would all just point to the Rust logger wrapper, which is useless.

  • Proof of concept
  • Relocate somewhere else than settings.rs
  • Log source file information somehow

Handles the Qt part of #525

Edited by Matti Viljanen

Merge request reports

Loading