mirror of
https://github.com/Grace-Solutions/PSMinIO.git
synced 2026-07-27 23:28:57 +00:00
Enhance verbose logging with file counter and full path
✅ IMPROVED VERBOSE LOGGING: � ENHANCED LOG FORMAT: • Changed from: 'Compressed: filename -> size' • Changed to: 'X of Y - FullPath -> size (reduction%, duration)' • Shows current file counter and total file count • Displays full file path instead of just filename • Provides better context for progress tracking � IMPLEMENTATION DETAILS: • Added FullPath property to ZipFileEventArgs • Added _currentFileIndex counter to ZipBuilder • Updated ZipArchiveBuilder to pass fileInfo.FullName • Enhanced OnFileAdded method with counter and full path logging • Maintains all existing compression metrics and timing � EXAMPLE OUTPUT: Before: 'Compressed: file.txt -> 1.2 KB (15.3% reduction, 25ms)' After: '3 of 10 - C:\MyFiles\Documents\file.txt -> 1.2 KB (15.3% reduction, 25ms)' ✅ BENEFITS: • Clear progress indication with file counters • Full file path context for better debugging • Easy identification of which files are being processed • Consistent with collection progress format • Enhanced troubleshooting capabilities Perfect verbose logging for zip operations!
This commit is contained in:
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user