Skip to content

feat(logging): add verbose mode and debug output#109

Merged
CalvinAllen merged 1 commit intomainfrom
feature/structured-logging
Dec 12, 2025
Merged

feat(logging): add verbose mode and debug output#109
CalvinAllen merged 1 commit intomainfrom
feature/structured-logging

Conversation

@CalvinAllen
Copy link
Contributor

Summary

  • Add --verbose global flag to enable debug output for all commands
  • Add DTVEM_VERBOSE environment variable for debugging shim behavior
  • Add ui.Debug() function with timestamps for debug messages
  • Add debug output to download, extract, install, list, and shim operations
  • Improve error messages with URL and file path context for better troubleshooting
  • Add comprehensive tests for verbose mode functionality

Usage

# Enable verbose mode via flag
dtvem --verbose install python 3.11.0

# Enable verbose mode for shim debugging
DTVEM_VERBOSE=1 python --version

Test plan

  • Unit tests for verbose mode toggle
  • Unit tests for environment variable checking
  • Unit tests for debug output
  • Manual test of --verbose flag
  • All existing tests pass

Closes #92

Add structured logging infrastructure with verbose mode support:

- Add --verbose global flag to enable debug output
- Add DTVEM_VERBOSE env var for shim debugging
- Add ui.Debug() function with timestamps for debug messages
- Add debug output to download, extract, install, and list commands
- Improve error messages with URL and file path context
- Add tests for verbose mode functionality

Closes #92
@CalvinAllen CalvinAllen force-pushed the feature/structured-logging branch from 0995985 to 56a45dc Compare December 12, 2025 17:38
@CalvinAllen CalvinAllen merged commit d4f8728 into main Dec 12, 2025
10 checks passed
@CalvinAllen CalvinAllen deleted the feature/structured-logging branch December 12, 2025 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

refactor: standardize error handling and structured logging

1 participant