Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Taillight: Log Tail & HighlightNew to Visual Studio Code? Get it now.
Taillight: Log Tail & Highlight

Taillight: Log Tail & Highlight

Vitaliy Yugay

|
1 install
| (0) | Free
Live follow-tail for log files plus easy highlight rules: paste text, pick colors, no regex needed.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Taillight

A VS Code extension for reading log files. It follows the end of a log while it is being written, and lets you highlight the lines that matter without writing regular expressions. Inspired by Hoo WinTail.

Features

Follow tail

  • A log opens scrolled to the end and stays there as new lines are written.
  • Scroll up to pause; scroll back to the end (Ctrl+End) to resume.
  • The status bar shows Following, Paused or Follow off. Click it to turn following on or off for that file.
  • For files on network shares, where VS Code can miss changes, the extension also checks the file on disk every second (taillight.pollIntervalMs).

Highlight rules

Open the Taillight icon in the activity bar. Each rule is one compact row: its text drawn the way it will look, badges for its options, and buttons to edit, move up/down and delete. + Add rule, ✎ or a double-click opens the rule dialog; changes apply on Save (or Enter) and are dropped on Cancel (or Esc). Each rule has:

Option What it does
Text The text to find, pasted as-is. Matched literally, so [WARN] or a.b mean exactly that.
Aa Match case Off: error also finds Error and ERROR.
ab Whole word Doesn't match inside longer words: ERROR won't match ERRORS.
.* Regex Treat the text as a regular expression. Optional; off by default.
Match / Whole line Style only the matched text, or the entire line that contains it.
Text color, background, opacity, B I U How the rule looks, with a live preview.
On/off, ↑ ↓, ✕ (in the list) Turn a rule off without deleting it, change its priority, delete it. Saved at once.

Where rules overlap, the higher one in the list wins. Whole-line rules are drawn underneath match rules, so a red-tinted line can still have its ERROR word in bold.

Hits also show as marks on the scrollbar.

Lines with a match

When a Match rule finds something, the whole line also gets a soft tint (yellow at 30% by default) so the line stands out while scrolling. Set the color and opacity, or turn it off, under General options at the top of the sidebar. Lines already styled by a Whole line rule keep that rule's color.

Highlight selection

Select text in a log, right-click, and choose Highlight Selection…. Pick whether to style the text or the whole line, a color, and whether case matters. The new rule goes to the top of the list.

Export and import

Export… and Import… at the top of the sidebar (or the commands below) save your rules and line tint to a JSON file, and load them back. Use them to share a rule set, keep presets, or back up your rules.

  • Files are always on your own computer, even in a Remote-SSH, WSL or Codespaces window.
  • Import asks whether to Replace my rules or Add to my rules. Add skips rules you already have.
  • Import also accepts a plain copy of the taillight.rules setting (a JSON array).
  • If a file contains regex rules, import says so before saving. A badly written regular expression from someone else can slow VS Code down.
  • Files over 1 MB, more than 500 rules, and rules longer than 2,000 characters are refused or dropped, and the result message says what was skipped.

Default rules

Lines containing ERROR are tinted red and lines containing WARN are tinted orange, and the word ERROR is bold white on red. These cover Logback, Log4j and NLog style levels. For Python's WARNING or Serilog's [WRN]/[ERR], add a rule with that text.

Settings

Setting Default
taillight.rules 3 rules (see above) The highlight rules. Easiest to edit in the sidebar.
taillight.matchLineHighlight { "enabled": true, "color": "#ffff00", "opacity": 30 } Line tint for lines with a Match hit.
taillight.files **/*.log, **/*.log.*, **/*.out Files that get highlighting and follow-tail. Files in the Log language mode are always included. Use **/* for every file.
taillight.followByDefault true Jump to the end and follow when a log opens.
taillight.pollIntervalMs 1000 Disk check for followed files, in ms. 0 turns it off.

Rules and the line tint are saved to your user settings, so Settings Sync carries them to other machines. If a workspace defines its own, edits from the sidebar go to the workspace instead.

Commands

All under Taillight: in the Command Palette.

  • Toggle Follow Tail
  • Toggle Highlighting (all rules on/off for this session)
  • Highlight Selection…
  • Edit Highlight Rules (opens the sidebar)
  • Export Highlight Rules… / Import Highlight Rules…

Install

Requires VS Code 1.90 or later.

Download the .vsix from Releases, or build it yourself with npm install && npm run package. Then:

code --install-extension taillight-<version>.vsix

Privacy and safety

  • No network access. The extension makes no network requests, sends no telemetry, and has no runtime dependencies.
  • Your rules stay in your settings. The only ways they leave your machine are files you export yourself, and Settings Sync if you have turned it on. To keep them out of Settings Sync, add "taillight.rules" and "taillight.matchLineHighlight" to settingsSync.ignoredSettings.
  • Untrusted folders can't inject rules. In Restricted Mode a folder's own Taillight settings are ignored, and your changes go to your user settings.
  • Risky patterns. A regular expression whose repeated group itself repeats, like (a+)+, can freeze VS Code on some lines. Rules like that show a warning in the sidebar, and imported ones arrive switched off.
  • The sidebar is locked down. It runs under a strict content security policy, loads only the extension's own files, and never turns rule text into HTML.

Known limits

  • VS Code doesn't let extensions see files larger than about 50 MB, so those open without highlighting or follow-tail.
  • The disk-check fallback reloads only the file in the active editor.

Develop

npm install
npm test        # unit tests for the rule matcher
npm run watch   # rebuild on change; press F5 in VS Code to try it

Releasing

  1. Bump version in package.json and add a section to CHANGELOG.md, then commit.
  2. Tag and push: git tag v0.3.2 && git push origin main v0.3.2.
  3. The Release workflow checks that the tag matches the version, runs the typecheck and tests, and builds the .vsix. It then publishes to the Visual Studio Marketplace (if the VSCE_PAT secret is set) and Open VSX (if OVSX_PAT is set), and creates a GitHub release with the .vsix and the changelog section.

samples/ has logs in Python logging, Logback, Serilog, NLog and nginx formats. node samples/generate.mjs --live keeps adding lines to samples/live.log, for trying follow-tail.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft