Skip to content

Migrate logging to tracing#11

Merged
sardylan merged 5 commits into
mainfrom
10-migrate-logging-to-tracing
Dec 26, 2025
Merged

Migrate logging to tracing#11
sardylan merged 5 commits into
mainfrom
10-migrate-logging-to-tracing

Conversation

@sardylan

Copy link
Copy Markdown
Owner

No description provided.

@sardylan
sardylan requested a review from Copilot December 26, 2025 17:19
@sardylan sardylan self-assigned this Dec 26, 2025
@sardylan sardylan linked an issue Dec 26, 2025 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the logging infrastructure from log4rs to the tracing framework, removes the old logging.rs module in favor of a new log.rs module, and adds a new force_mode configuration option to allow manual mode override.

Key changes:

  • Replaced log4rs with tracing and tracing-subscriber for structured logging
  • Migrated all logging macros from log::* to tracing::* throughout the codebase
  • Added new force_mode configuration parameter to force a specific radio mode

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/log.rs New logging configuration module using tracing-subscriber with enhanced formatting options
src/logging.rs Removed old log4rs-based logging module
src/main.rs Updated logging macro calls, added force_mode logic to override radio mode detection, and refactored VFO mode/frequency retrieval
src/wavelog.rs Migrated logging macros to tracing and applied code formatting improvements
src/config.rs Added new force_mode configuration parameter and updated to use tracing::Level
src/errors.rs Updated imports to use explicit Display and Formatter from std::fmt
Cargo.toml Removed log4rs dependencies, added tracing ecosystem dependencies, and updated version to 1.3.0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/config.rs Outdated
Comment thread src/main.rs Outdated
Comment thread src/main.rs
sardylan and others added 2 commits December 26, 2025 18:24
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/config.rs Outdated
Comment thread src/config.rs Outdated
Comment thread src/log.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sardylan
sardylan merged commit 26b9bc7 into main Dec 26, 2025
1 check passed
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.

Migrate logging to tracing

2 participants