Professional Log Viewer for Magento & Adobe Commerce Developers
A powerful VS Code extension that enhances your Magento development workflow with intelligent log management, advanced search capabilities, and automated cleanup tools.
- Live Monitoring - Watch log files update in real-time as new entries are written
- Intelligent Updates - Only new content is read (no full file re-reads)
- One-Click Activation - Right-click any log file β "Start Tailing"
- Smart Notifications - Automatic alerts for new ERRORs and CRITICAL entries (throttled to prevent spam)
- Memory Safe - Maximum 5 files simultaneously, large file warnings (>100MB)
- Persistent State - Optional: Remember tailed files across VS Code restarts
- Configurable Speed - Update intervals from instant (100ms) to relaxed (2s)
- Structured Tree View - All log files from
var/log/organized clearly - Color-coded Log Levels - ERROR (red), WARN (orange), DEBUG (yellow), INFO (blue), CRITICAL (pink)
- Report File Integration - Automatic analysis and grouping of
var/report/files - Real-time Monitoring - Live updates when files change
- Real-time Search - Instant filtering as you type
- Regex Support - Powerful pattern matching (e.g.,
error.*critical) - Case-sensitive Options - Precise search with case sensitivity control
- Smart Grouping - Identical log entries are automatically grouped
- Intelligent Caching - Up to 80% faster file access
- Memory Management - Automatic cache memory optimization
- Configurable Limits - Adjust cache size based on project needs
- Performance Statistics - Detailed cache metrics for developers
- Auto-Cleanup - Automatic deletion of old log files by configurable age
- Periodic Cleanup - Cron-like scheduling (5min to 24h intervals)
- One-Click Cleanup - Instant deletion with safety confirmation
- Bulk Operations - Delete report files individually or all at once
- Install Extension - Direct from VS Code Marketplace
- Open Magento Project - Load workspace in VS Code
- Confirm Project - Automatic detection with confirmation dialog
- Select Magento Root - Integrated folder picker for easy configuration
- Done! - Log files are automatically loaded
π‘ Tip: The extension saves all settings workspace-specific, allowing different configurations for different Magento projects.
- Open Log Viewer - Click the Magento logo (M) in the sidebar
- Search Logs - Search icon in the header for live filtering
- Open Files - Direct click on log entries jumps to the corresponding line
- Manage Reports - Right-click menu for individual report deletion
Perfect for debugging live issues - see errors as they happen!
How to Use:
- Right-click on any log file in the tree view
- Select "Start Tailing" from context menu
- Watch live - New log entries appear automatically
- Stop anytime - Right-click β "Stop Tailing" or use "Stop All Tailing" in maintenance menu
Features:
- π Live Updates - New entries appear instantly (configurable interval: 100ms to 2s)
- π¨ Smart Alerts - Automatic notifications for ERROR/CRITICAL entries (max 1/minute)
- πΎ Memory Safe - Position tracking ensures only new content is read
- β‘ Performance - Incremental parsing without full file reload
- π Persistent - Optional: Restore tailing after VS Code restart
Configuration:
{
"magentoLogViewer.tailingUpdateInterval": "500ms", // How fast to check for updates
"magentoLogViewer.tailingAutoScroll": true, // Auto-scroll to new entries
"magentoLogViewer.tailingPersistAcrossSessions": false // Remember after restart
}Best Practices:
- Use instant (100ms) for critical debugging sessions
- Use 500ms (default) for normal development
- Use 1s-2s for low-priority monitoring
- Maximum 5 files can be tailed simultaneously
- Files >100MB show warning before tailing starts
- π Overview - All log files with badge display of entry count
- π Auto-Refresh - Automatic updates when files change
- π Grouping - Identical messages are summarized (
INFO (128, grouped)) - π― Navigation - Direct jump to specific lines in code
- π Text Search - Simple text input filters all relevant entries
- β‘ Real-time Filter - Instant results while typing
- π― Case-Sensitive - Activatable via settings for exact case matching
- π§ Regex Patterns - Advanced search patterns for complex filtering
- Example:
error.*criticalfinds all ERROR logs with "critical" - Example:
\[2024-12-\d+\]for all December 2024 entries
- Example:
- π§Ή Clear Search - Clear button (visible during active search)
- β° Auto-Cleanup - Configurable deletion by file age
- Supported formats:
30min,2h,7d,2w,3M - Disabled by default for safety
- Supported formats:
- π Periodic Cleanup - Automatic execution at intervals
- Intervals: 5min to 24h selectable
- Recommended:
1hfor production,6hfor development
- ποΈ Manual Cleanup - Clock icon for immediate cleanup
β οΈ Safety - Confirmation dialogs for critical operations
- π Structured View - Automatic title optimization through content parsing
- π Separate Search - Independent search function for report files
- ποΈ Selective Deletion - Individual reports via right-click context menu
- π§Ή Bulk Operations - Delete all reports at once
{
"magentoLogViewer.cacheMaxFiles": 50, // Max files in cache
"magentoLogViewer.cacheMaxFileSize": 10, // Max file size in MB
"magentoLogViewer.enableCacheStatistics": false // Debug statistics
}{
"magentoLogViewer.enableAutoCleanup": false, // Enable auto-cleanup
"magentoLogViewer.autoCleanupMaxAge": "7d", // Maximum file age
"magentoLogViewer.enablePeriodicCleanup": false, // Periodic execution
"magentoLogViewer.periodicCleanupInterval": "6h" // Cleanup interval
}{
"magentoLogViewer.groupByMessage": true, // Group messages
"magentoLogViewer.searchCaseSensitive": false, // Case-sensitive search
"magentoLogViewer.searchUseRegex": false // Regex support
}- β Magento 2.x (all versions)
- β Adobe Commerce (On-Premise & Cloud)
- β Adobe Commerce Cloud
- β Magento Open Source
- β Custom Log Structures
- VS Code 1.95.0 or higher
- Magento Project with standard
var/logandvar/reportstructure - Node.js (automatically installed with VS Code)
- π Bug Reports - GitHub Issues
- π‘ Feature Requests - GitHub Discussions
- β Rate Extension - VS Code Marketplace
- π Sponsoring - GitHub Sponsors
- π§ Contributing - Pull requests welcome!
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Built with β€οΈ for the Magento Community
Enhance your productivity with intelligent log management directly in VS Code!
