Loglink

November 30th, 2025


Update: logpoints solves this better than “loglinks”.

I wish there was a program to teach me. I don’t want Clippy-style interrupts for a longer concept like debuggers. Weirdly, you need to market the debugger to me, just as VSCode was marketed to me. When I’m “lean forward”, I don’t want “lean back” lessons.

I log when I should debug. It’s just a habit. However, I find myself swapping back and forth between IDE and a tailing terminal session, copy/pasting log statement prefixes:

  1. Swapping to terminal and searching for my log statement
  2. Looking at adjacent statements and swapping back to IDE to find the log statement

Loglink should simplify this:

  1. Cmd+click a log statement to go to the latest log line
  2. Cmd+click on a log line to go to the matching code

It feels relatively straightforward:

  1. Code → Logs: format string → log regex
  2. Logs → Code: index format strings, attempt to match
  3. Notify the developer when there are duplicate format strings

I can use language servers to find references or call hierarchies to logging.

log.Printf("hello %s", )
slog.Info("hello", "audience", audience)
// 2022/11/08 15:28:26 INFO hello audience=world

Loglink could look into your code or your Makefile to guess where the logging file is.