Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Better logNew to Visual Studio Code? Get it now.
Better log

Better log

Gradus

|
1 install
| (0) | Free
Syntax highlighting, timestamp tooltips, and one-click JSON formatting for structured log files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Better Log

VS Code extension for viewing structured JSON log files (.log). Adds syntax highlighting, timestamp tooltips, and one-click JSON formatting.

Better Log Demo

Features

Syntax Highlighting

Automatically highlights key fields in JSON log lines:

  • @timestamp values are displayed in a distinct color for easy scanning
  • level values are color-coded by severity:
Level Color
trace gray
debug light green
info blue
warn yellow
error red
fatal red

Timestamp Hover

Hover over an @timestamp value to see the local time in HH:MM:SS format.

Open as JSON

Each log line has a { } Open as JSON CodeLens action. Click it to open the line as a formatted JSON document in a side panel. The tab is named after the timestamp of the entry for easy navigation between multiple open entries.

Supported Log Format

The extension works with .log files where each line is a JSON object containing @timestamp and level fields:

{"@timestamp":"2026-04-04T12:00:00.000Z","level":"info","message":"Server started","port":3000}
{"@timestamp":"2026-04-04T12:00:01.123Z","level":"error","message":"Connection failed","host":"db.local"}

This format is compatible with ECS (Elastic Common Schema), Pino, Bunyan, and other structured logging libraries.

Installation

Search for better-log in the VS Code Extensions panel (Ctrl+Shift+X / Cmd+Shift+X) and click Install.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft