Log Sight is a VS Code extension that provides a debug-console-style log viewer with timestamps and level-aware filtering.
- View logs in a single focused panel.
- Separate
debug,warning, anderrorsignals quickly. - Capture debug adapter output across different languages and debug sessions, then inspect it with filters.
- Timestamped log entries for every message.
- Log levels:
debug,warning,error. - Console-style panel with level filters:
All,Debug,Warning,Error. - Source filter and time-range filter (
5m,15m,1h,24h,All). - Optional regex search mode with invalid pattern feedback.
- Named filter presets you can save, load, and delete.
- Consecutive duplicate collapse with count badges.
- Optional grouping by source for faster stream scanning.
- Expand/collapse multiline stack traces.
- Clickable
path:line:columnlinks that open files in the editor. - Copy actions for log rows and full stack traces.
- Start and stop capture controls in the panel and Command Palette.
- Manual log commands from Command Palette.
- Programmatic append API for integration with commands and automation.
- Mirrors extension-host
console.debug,console.warn, andconsole.error.
Log Sight: Show ConsoleLog Sight: Start Log CaptureLog Sight: Stop Log CaptureLog Sight: Add Debug LogLog Sight: Add Warning LogLog Sight: Add Error LogLog Sight: Clear Logs
- Open Command Palette.
- Run
Log Sight: Show Console. - Start your app/debug session.
- Use the
StartandStopcontrols to pause or resume capture. - Combine level, source, and time-range filters with search or regex.
- Save frequently used filter combinations as presets.
- Click stack trace file links to jump directly to source.
Use command logsight.appendLog to append logs from your own extension workflow:
await vscode.commands.executeCommand("logsight.appendLog", {
level: "warning", // "debug" | "warning" | "error"
message: "Disk usage is above threshold",
source: "build-pipeline"
});Payload shape:
level(optional):debug,warning,warn, orerror.message(optional): log text.source(optional): short source label shown in the UI.
npm install
npm run compileRun locally:
- Open this project in VS Code.
- Press
F5to launch Extension Development Host. - In the new window, run
Log Sight: Show Console.
- Webview runs with a restrictive Content Security Policy.
- Log content is escaped before rendering in the webview.
- In-memory log store is bounded to prevent unbounded growth.
- VS Code does not expose a universal API to capture every log from every extension/process globally.
- To capture logs from another VS Code window/process, Log Sight must also be running in that window.
Built by Jashwanth Neela.