Apache Logs Monitor for VS Code

Release v1.0.0-beta3 (August 21, 2025)
Last Commit c92063a (August 28, 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.

Version: 1.0.0-beta3 VS Code: 1.74+ License: ISC

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 number
  • all() – show logs from all sites
  • stop() – stop monitoring
  • list() – show available sites

Requirements

  • Apache with standard Debian/Ubuntu config layout
  • Access to /etc/apache2/sites-enabled/ and log files
  • May need sudo for 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

  1. example.com – /var/log/apache2/example.com_error.log
  2. 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.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post’s permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post’s URL again. (Find out more about Webmentions.)