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.
Features
Available Commands
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.
Commands configured for WordPress VIP
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.
Settings
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.