A Visual Studio Code extension that watches log files for changes and outputs those changes to the "Output" tab in real time, similar to tail -F
.
The Log Watcher extension was created specifically to support the GitHub Codespaces package designed for developing WordPress VIP applications.
Some commands such as Watch nginx access.log
will only work as expected within GitHub Codespaces for WordPress VIP. These commands expect log files to be located at a specific, preconfigured file path.
- Log Watcher: Watch File…: Start watching a specific file for changes.
- Log Watcher: Stop Watching File…: Stop watching a specific file.
More than one Watch File
commands can run simultaneously.
- Log Watcher: Watch nginx access.log: Watch
/var/log/nginx/access.log
for changes. - Log Watcher: Watch nginx error.log: Watch
/var/log/nginx/error.log
for changes.
- Log Watcher: Automatically Show Changes (
LogWatcher.automaticallyShowChanges
): Enabled by default. When a watched file is updated, Log Watcher will shift focus to that file in the "Output" tab. - Log Watcher: Watch Files On Startup (
LogWatcher.watchFilesOnStartup
): An editable list of files that will be watched by default on startup by Log Watcher.
- Run the
Install Extension
command from the Command Palette. - Search for and select
Log Watcher
.
For non-WordPress VIP users, installing the Log File Highlighter extension is also recommended for adding color highlighting to log files.
For changelogs of every release version, refer to the Releases section of our GitHub project.