LogLens for VS Code
The fastest way to view, query, and analyze structured logs in VS Code.
⚡ Powered by LogLens CLI — The high-performance Rust log engine.

Features
🎨 Intelligent Syntax Highlighting
Instantly make sense of messy server logs. LogLens automatically highlights:
- Log Levels:
ERROR (Red), WARN (Yellow), INFO (Green).
- Timestamps: ISO8601 and standard formats.
- JSON Keys: Identifies structure in
.log and .json files.
- HTTP Codes: Highlights
500 errors and 200 successes.
🔍 Structured Querying (No Regex required)
Stop wrestling with complex Regular Expressions. Use SQL-like syntax to filter lines instantly.
Command: LogLens: Query Lines
Examples:
level is "error"
status >= 500 && latency > 200
message contains "database" or user.id == 101
The results open in a read-only virtual document, keeping your original file safe.
🧬 Schema Inspection
Working with massive JSON blobs? Instantly discover every field name, data type, and example value in your log file.
Command: LogLens: Inspect Field Schema
📊 Instant Statistical Analysis (Pro)
Turn your log file into a data report. Get immediate insights into error rates, response times, and top occuring messages.
Command: LogLens: Statistical Analysis
- Time Range: See exactly when the logs start and end.
- Numeric Stats: Min, Max, Average, and Percentiles for fields like
latency or cart_value.
- Categorical Counts: See the top 5 User IDs, IP addresses, or Error types.
👀 Live Watch (Pro)
Tail your logs in real-time right inside the VS Code Output panel. Supports real-time filtering.
Command: LogLens: Live Watch
Installation
This extension requires the LogLens Core binary.
- Install this extension.
- Run any command (e.g.,
LogLens: Query Lines).
- If LogLens is not found, the extension will offer to install it automatically via your terminal.
Alternatively, you can install the core tool manually:
macOS / Linux (Homebrew):
brew tap Caelrith/loglens
brew install loglens
Windows (PowerShell):
irm [https://download.getloglens.com/install.ps1](https://download.getloglens.com/install.ps1) | iex
Documentation & License
Release Notes
0.0.1
- Initial release.
- Added Syntax Highlighting for
.log and .logfmt.
- Added
Query and Inspect commands.
- Added
Stats and Watch integration for Pro users.