Skip to content

Logging Diagnostics#378

Open
PanickerAnsel wants to merge 2 commits intomainfrom
376-logging-diagnostics-poc-executable
Open

Logging Diagnostics#378
PanickerAnsel wants to merge 2 commits intomainfrom
376-logging-diagnostics-poc-executable

Conversation

@PanickerAnsel
Copy link
Copy Markdown
Collaborator

  • Created startup_logger.py with OS, permissions, config, serial enumeration
  • Integrated logging into main.py and serial subsystem modules
  • Added build_logging_exe.py PyInstaller script
  • Added generate_sample_log.py for standalone log generation
  • Included sample log output for deliverable

Fixes #376

What was changed?

Added comprehensive startup diagnostics logging system and built a proof-of-concept executable (Mouser_PoC_Logging.exe) with enhanced logging capabilities. The system logs OS information, file-system permissions, configuration paths, and serial subsystem initialization without opening any ports.

Why was it changed?

This helps identify configuration mismatches, missing files, and permission issues before they cause runtime failures.

How was it changed?

Created Core logging module with 5 diagnostic sections: OS info, permissions, config discovery,, serial enumeration.
Created PyInstaller build script that bundles settings, sounds, and images with proper hidden imports for serial/customtkinter
Created Standalone script to generate log output without launching the GUI
Created Sample deliverable showing the log format

- Created startup_logger.py with OS, permissions, config, serial enumeration
- Integrated logging into main.py and serial subsystem modules
- Added build_logging_exe.py PyInstaller script
- Added generate_sample_log.py for standalone log generation
- Included sample log output for deliverable
@PanickerAnsel PanickerAnsel linked an issue Feb 9, 2026 that may be closed by this pull request
- Fix import order in build_logging_exe.py
- Remove unused imports
- Fix constant naming conventions (_LOGGER, STARTUP_LOG_FILE)
- Add missing docstring to main() in generate_sample_log.py
@PanickerAnsel PanickerAnsel changed the title #376 Logging Diagnostics Logging Diagnostics Feb 9, 2026
Comment thread shared/startup_logger.py
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Everything looks good! But a suggestion would be to add a global logger to improve readability

Comment thread build_logging_exe.py
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The build script is well structure and documents the data files, hidden imports, and build argument

Comment thread generate_sample_log.py
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The script looks clean and is documented well.

Comment thread main.py
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

main.py looks organized and is structured well

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.

Logging & Diagnostics PoC Executable

2 participants