Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Supermila Log LensNew to Visual Studio Code? Get it now.
Supermila Log Lens

Supermila Log Lens

MEIRIN SOU

| (0) | Free
Explore logs with time navigation, elapsed-time bars, and configurable keyword highlighting.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Supermila Log Lens

English | 日本語 | 简体中文

A VS Code extension for navigating logs by time, visualizing elapsed time, and highlighting keyword matches. Existing theme and syntax colors are preserved.

Installation

Requires VS Code 1.85.0 or later.

  1. Obtain supermila-log-lens-0.10.0.vsix from the distributor, or build it as described below.
  2. In the Extensions view, open … and choose Install from VSIX….
  3. Select the file. After updating, run Developer: Reload Window if changes do not appear.

The current interface uses Chinese command names, status text, and hover messages. English equivalents are provided below; this documentation does not change the interface language.

Jump to a time

Open a log, press Ctrl+Alt+T (macOS: Cmd+Alt+T), enter HH:mm:ss, such as 14:30:05, and press Enter. No date or fractional seconds are required. The current line's time is used as the initial value when available. Escape cancels.

The matching line is centered in the editor. Without an exact match, the closest timestamp is selected; equal distances favor the first line in the file. Dates are ignored when navigating, but fractional seconds in the log affect distance calculations. Repeated clock times in multi-day logs can therefore match an earlier day.

Command Palette: 日志:跳转到时间 (“Log: Jump to Time”). To customize the shortcut, search for logTimeJump.jump in Keyboard Shortcuts.

Green elapsed-time bars

Select multiple log lines with the mouse. Green bars appear under timestamps and update as the selection changes.

  • The reference is the first recognized timestamp at the top of the selection, regardless of drag direction.
  • A bar shows the current line's elapsed time from that reference, rather than from the previous line.
  • The greatest positive elapsed time fills the timestamp width. Other bars scale proportionally in character-sized steps.
  • Hover over a timestamp to see the reference, current time, and elapsed duration.
  • The reference line, zero durations, and times earlier than the reference have no bar. Lines without timestamps are skipped.
  • Clearing the selection removes the bars. Only the primary selection is used. A final line selected only up to column zero is excluded.

Example: 14:30:00.000, 14:30:00.100, and 14:30:00.500 produce elapsed values of 0 ms, 100 ms, and 500 ms. The second bar is one fifth of the maximum width.

When both timestamps include dates, calculations support crossing midnight. Without complete dates, times are compared within the same day; midnight rollover cannot be inferred. Precision is milliseconds.

Persistent keyword highlighting

Lines containing any configured keyword receive a subtle blue background, independently of the selection. Supported documents: .log, .out, .txt, numbered variants such as .log.1, and documents using the log language mode.

To configure through the UI, open Settings with Ctrl+,, search for logTimeJump.highlightKeywords, and use Add Item. Select the Workspace tab for project-specific settings.

Alternatively, add these properties to the project's .vscode/settings.json. Merge them into the existing JSON object if the file already exists.

{
  "logTimeJump.highlightKeywords": [
    "CashlessDeviceCommunicator.MainAsync() Received",
    "ConnectionTimeout"
  ]
}

Matching is case-sensitive literal text, not a regular expression. Matching any keyword highlights the line. Blank keywords are ignored; [] disables matching. Saving settings updates the highlights automatically. The default list contains only the Received keyword above.

User settings apply across projects. Workspace and folder settings override them; arrays replace the inherited list instead of merging. In multi-root workspaces, each log uses settings for its containing folder.

Toggle individual keywords

With a log open, click 高亮 x/y (“Highlight x/y”) at the bottom left, or run 日志:选择高亮关键词 (“Log: Select Highlight Keywords”) from the Command Palette.

Check to enable a keyword; uncheck to temporarily disable it. Enter saves and Escape cancels. Keywords remain registered, and you can uncheck all items.

Choices are saved in logTimeJump.disabledKeywords at the scope where the keyword list is configured. The compatibility setting logTimeJump.highlightReceived is the master switch: false turns off all keyword highlighting.

Setting Default Purpose
logTimeJump.highlightKeywords Received keyword above Keywords to match
logTimeJump.disabledKeywords [] Temporarily disabled keywords
logTimeJump.highlightReceived true Master switch for keyword highlighting

Timestamp support and limitations

Recognized examples:

14:22:14.1485 [ 14] [ERROR] Request failed
2026-11-21 14:30:05.123 INFO Request completed
2026/11/21 14:30:05,500 WARN Slow response
2026-11-21T14:30:05.123Z INFO Connected

Each line uses its first recognized timestamp. Up to nine fractional digits are accepted and truncated to milliseconds for calculations. Times are compared as written; timezone suffixes are not converted. Unix timestamps and textual month formats such as Nov 21 are not supported.

Time navigation searches the current document, including unsaved text and unsorted logs. Searches can be cancelled. If the document changes during input or scanning, rerun the command. Larger files and selections can take longer to process. Keyword decorations are applied near visible lines and refreshed when scrolling. Decorations do not modify log contents.

Development

No npm dependencies need to be installed. Use Node.js supporting node --test and Python 3:

npm test
npm run package

The VSIX is generated in dist/. Open this repository in VS Code and press F5 to launch an Extension Development Host. Try examples/sample.log or examples/demo-application.log.

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