Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>LogLens: Structured Log Viewer & AnalysisNew to Visual Studio Code? Get it now.
LogLens: Structured Log Viewer & Analysis

LogLens: Structured Log Viewer & Analysis

caelrith

|
2 installs
| (1) | Free
High-performance JSON log viewer with SQL-like querying and syntax highlighting. No Regex required.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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.

LogLens Demo

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.

  1. Install this extension.
  2. Run any command (e.g., LogLens: Query Lines).
  3. 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

  • Official Website: getloglens.com
  • CLI Documentation: getloglens.com/docs
  • Purchase License: getloglens.com/pricing

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.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft