feat(logging): apply runtime log level, forward frontend errors, redact paths, and improve rotation (fixes #158, #159, #160) #161

Merged
gronod merged 1 commits from feat/logging-improvements-158-159-160 into development 2026-08-31 00:15:48 +01:00
Owner

Summary

  • Dynamic Log Level (#158): Evaluates and applies AppSettings.log_level immediately at runtime (log::set_max_level) upon saving settings and loads persisted level on startup.
  • Frontend Logging to File (#159A): Added src/js/logger.js and log_frontend_message command, piping frontend warnings/errors to iccery.log across all stages and initialization.
  • Sensitive Path Redaction (#159B): Sanitizes home-directory prefixes to ~ in log::info! subprocess spawn messages while preserving raw paths for log::debug!.
  • Copy Recent Log Excerpt (#159C): Added get_recent_log_excerpt backend command and 📋 Copy Recent Logs button in Settings (copies up to 200 lines / 64 KiB).
  • Log Rotation & Retention (#160): Configured 5 MB file segments with RotationStrategy::KeepAll and bounded automatic startup pruning (prune_historical_logs) retaining up to 5 historical log segments.
  • Version Bump: Bumped version to 0.5.4.

Resolves #158, #159, #160.

### Summary - **Dynamic Log Level (#158)**: Evaluates and applies `AppSettings.log_level` immediately at runtime (`log::set_max_level`) upon saving settings and loads persisted level on startup. - **Frontend Logging to File (#159A)**: Added `src/js/logger.js` and `log_frontend_message` command, piping frontend warnings/errors to `iccery.log` across all stages and initialization. - **Sensitive Path Redaction (#159B)**: Sanitizes home-directory prefixes to `~` in `log::info!` subprocess spawn messages while preserving raw paths for `log::debug!`. - **Copy Recent Log Excerpt (#159C)**: Added `get_recent_log_excerpt` backend command and **📋 Copy Recent Logs** button in Settings (copies up to 200 lines / 64 KiB). - **Log Rotation & Retention (#160)**: Configured 5 MB file segments with `RotationStrategy::KeepAll` and bounded automatic startup pruning (`prune_historical_logs`) retaining up to 5 historical log segments. - **Version Bump**: Bumped version to `0.5.4`. Resolves #158, #159, #160.
gronod added 1 commit 2026-08-31 00:15:44 +01:00
gronod merged commit c71b7d4e6e into development 2026-08-31 00:15:48 +01:00
gronod deleted branch feat/logging-improvements-158-159-160 2026-08-31 00:15:48 +01:00
Sign in to join this conversation.