Add timestamped logging for QC datasheet creation #6
Reference in New Issue
Block a user
Delete Branch "cursor/datasheet-creation-logging-d2eb"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds append-only file logging for every QC datasheet create attempt so successes, skips, and errors are recorded with date and time.
Changes
app_logging.py: resolves log path (XLSX_CLEAN_LOG→ frozen exe dir →~/.xlsx-clean/xlsx-clean.log), configures a datedFileHandler.create_datasheetlogs INFO on write/skip and ERROR on validation/config/backend failures (with traceback vialogger.exceptionfor backend errors).CLI and web UI both go through
create_datasheet, so both get the same audit trail without UI changes.Log location
XLSX_CLEAN_LOGenv var if set~/.xlsx-clean/xlsx-clean.log