| Release | v1.0.0-beta3 (August 21, 2025) |
|---|---|
| Last Commit | c92063a (December 4, 2025 12:00 am) |
| Repository | https://github.com/magicoli/vscode-apache-logs-monitor |
| License | ISC |
A simple VS Code extension to monitor Apache error logs in the Debug Console.
What it does
- Shows Apache error logs in VS Code Debug Console
- Finds Apache sites automatically from
/etc/apache2/sites-enabled/ - Lets you switch between different site logs
- Basic commands:
select,all,stop,list
Installation
Quick install (recommended):
No need to clone the repository, the install script will fetch the needed files.
curl -fsSL https://raw.githubusercontent.com/magicoli/vscode-apache-logs-monitor/master/install.sh | bash
Usage
In the Debug Console, type:
select(1,2,3)– pick specific sites to monitor by numberall()– show logs from all sitesstop()– stop monitoringlist()– show available sites
Requirements
- Apache with standard Debian/Ubuntu config layout
- Access to
/etc/apache2/sites-enabled/and log files - May need
sudofor log file access
Example
[14:30:45] Starting Apache Logs Monitor...
[14:30:45] Found sites: example.com, api.example.com
[14:30:45] Monitoring: /var/log/apache2/example.com_error.log
select
- example.com – /var/log/apache2/example.com_error.log
- api.example.com – /var/log/apache2/api.example.com_error.log Choose [1-2]: 2
[14:31:02] Switching to: api.example.com [14:31:02] [error] [client 192.168.1.100] PHP Notice: Undefined variable
Development
git clone https://github.com/magicoli/vscode-apache-logs-monitor.git
cd vscode-apache-logs-monitor
npm install
npm run compile
npx vsce package
Use ./dev.sh build to rebuild or ./dev.sh watch for auto-rebuild.
Notes
- This is a basic utility extension for Apache log monitoring
- Works with standard Apache configurations on Debian/Ubuntu
- For remote servers, install the extension on each server (not your local machine)
- Uses VS Code’s Debug Adapter Protocol for console integration
License
ISC License – see LICENSE file.
Leave a Reply