Click on the "..." menu in the top-right of the Extensions panel
Select "Install from VSIX..."
Choose the downloaded file
Usage
Start your Node.js application that uses z-mmap-logger
In VS Code, open the folder containing your application
Click the "z-logs" icon in the status bar, or use the "Show Z-Logs" command from the Command Palette (Ctrl+Shift+P)
The logs viewer will open and display logs from your application in real-time
Commands
Show Z-Logs: Opens the logs viewer panel
Controls in the Logs Viewer
Clear: Clears all currently displayed logs
Pause/Resume: Pauses or resumes the log updates
Auto-scroll: When checked, automatically scrolls to the newest logs
How it Works
This extension reads the memory-mapped log file (.z-logs/logs.mmap) created by the z-mmap-logger package in your Node.js application. The log file is continuously updated by your application, and the extension polls for changes at regular intervals to display the latest logs.
Troubleshooting
If you don't see any logs:
Make sure your Node.js application is running and using the z-mmap-logger package
Check that the .z-logs directory exists in your workspace
Verify that the logs.mmap file is being created inside the .z-logs directory
Contributing
Contributions are welcome! Feel free to submit issues or pull requests on the GitHub repository.