Add timestamped logging for QC datasheet creation #6

Merged
rhino merged 14 commits from cursor/datasheet-creation-logging-d2eb into main 2026-08-08 14:41:02 +00:00
Owner

Summary

Adds append-only file logging for every QC datasheet create attempt so successes, skips, and errors are recorded with date and time.

Changes

  • New app_logging.py: resolves log path (XLSX_CLEAN_LOG → frozen exe dir → ~/.xlsx-clean/xlsx-clean.log), configures a dated FileHandler.
  • create_datasheet logs INFO on write/skip and ERROR on validation/config/backend failures (with traceback via logger.exception for backend errors).

CLI and web UI both go through create_datasheet, so both get the same audit trail without UI changes.

Log location

  1. XLSX_CLEAN_LOG env var if set
  2. Next to the frozen executable
  3. Otherwise ~/.xlsx-clean/xlsx-clean.log
## Summary Adds append-only file logging for every QC datasheet create attempt so successes, skips, and errors are recorded with date and time. ## Changes - New `app_logging.py`: resolves log path (`XLSX_CLEAN_LOG` → frozen exe dir → `~/.xlsx-clean/xlsx-clean.log`), configures a dated `FileHandler`. - `create_datasheet` logs INFO on write/skip and ERROR on validation/config/backend failures (with traceback via `logger.exception` for backend errors). CLI and web UI both go through `create_datasheet`, so both get the same audit trail without UI changes. ## Log location 1. `XLSX_CLEAN_LOG` env var if set 2. Next to the frozen executable 3. Otherwise `~/.xlsx-clean/xlsx-clean.log`
rhino added 14 commits 2026-08-08 14:40:15 +00:00
Add cross-platform Linux + Windows Excel clean support
Add NiceGUI web UI for datasheet selection
Add desktop shortcut and Windows exe packaging
Standardize install and packaging on uv
Open UI in a single native app window
Add modern Desktop icon and bring Excel to front
Migrate to uv and upgrade dependencies to latest
Document Linux native-window system deps and fall back
Brand UI, shortcut, and exe as New QC Sheet
Fix Linux native window falling back to browser
Force Linux venv onto OS Python so apt _gi loads
Prefer /usr/bin/python3 over PATH uv-managed interpreters
Show package version in window title and UI footer
Log every create_datasheet outcome (success, skip, validation/backend
errors with traceback) to a dated append-only log file so CLI and web
UI share one audit trail.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
rhino merged commit 655cbd6fbf into main 2026-08-08 14:41:02 +00:00
rhino deleted branch cursor/datasheet-creation-logging-d2eb 2026-08-08 14:41:02 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rhino/xlsx-clean#6