Traceback Highlighter

Traceback Highlighter

Drop a Python log, choose an exception class, and copy every complete traceback that raised it: the opening log line, every frame and the exception, nothing else.

Drop a Python log here

Any plain-text log up to 5 MiB and 50,000 lines. It is read on this device and never uploaded.

Ctrl + Enter in the box finds them

Drop or choose a Python log, or paste one, to list its exception classes.

Pick a class to highlight every complete traceback that raised it, with its opening log line and every frame, then copy them all at once. Try Load example to see it work.

What it does

A busy service log mixes many errors, and grep finds the exception line but not the stack above it. This page reads the log in your browser, finds every Traceback (most recent call last): block, works out which exception each one finally raised, and lists those classes with counts. Choose one and its tracebacks are marked in place, each with the log line that introduced it. A traceback that only mentions the class in a message or a source line is not a match: the class has to be the one raised. Chained tracebacks (During handling of the above exception…) stay together and count under the last exception.

Worked example: two QuotaErrors, one impostor

Part of the example log
2026-11-30 14:02:11 ERROR billing.worker: job 4411 failed
Traceback (most recent call last):
  File "billing/jobs.py", line 88, in run
    charge(account)
  …
  File "billing/limits.py", line 64, in reserve
    raise QuotaError("monthly quota exceeded")
myapp.errors.QuotaError: monthly quota exceeded for account 812
2026-11-30 14:04:02 ERROR billing.api: validation failed
Traceback (most recent call last):
  File "billing/api.py", line 32, in submit
    validate(payload)
  File "billing/schema.py", line 41, in validate
    raise ValueError("expected QuotaError payload, got None")
ValueError: expected QuotaError payload, got None
2026-11-30 14:05:40 ERROR billing.worker: Traceback (most recent call last):
  File "billing/worker.py", line 120, in dispatch
    run(job)
  …
    raise QuotaError("daily burst limit reached")
myapp.errors.QuotaError: daily burst limit reached for account 907
2026-11-30 14:05:41 INFO billing.worker: retrying job 4419 in 30s

The ValueError's message and source line both contain "QuotaError", but it raised ValueError, so choosing QuotaError leaves it unmarked. The INFO retrying line after the second QuotaError is not part of the block and is not copied.

How to use it

  1. Drop a log file on the page, choose one, or paste the text.
  2. Pick an exception class from the Class list. Its tracebacks are highlighted in the log.
  3. Step through them with Previous and Next, then press Copy to put every one on your clipboard, in file order.

What it does not do

Questions

How do I grep a whole Python traceback, not just the error line?

Grep stops at the matching line, and the frames above it are what you need. Load the log here and choose the class; each block comes with its header, frames, source and caret lines, and the exception.

Why is a traceback that mentions my exception not highlighted?

Only the exception actually raised counts. A different error whose message or code line contains the name is listed under its own class.

Are myapp.errors.QuotaError and QuotaError the same?

No. Classes are matched exactly as the log writes them, so a qualified and a bare name are separate entries.

Does it work with Jenkins or GitHub Actions console logs?

Yes, if the traceback lines are as Python wrote them. When the CI tool adds a timestamp to every line, the frames no longer start with a space, and the traceback reads as incomplete.

Is my log uploaded?

No. It is read in this page's memory and gone when you close the tab. The only thing written anywhere is your clipboard, when you press Copy.

See it work

Pick QuotaError and get both tracebacks marked, opening line to exception, while the ValueError that only mentions it stays plain.
Pick QuotaError and get both tracebacks marked, opening line to exception, while the ValueError that only mentions it stays plain.
Next jumps to the second match; the retry line after it is left out of the copy.
Next jumps to the second match; the retry line after it is left out of the copy.
A chained traceback stays one block, listed under the exception it finally raised.
A chained traceback stays one block, listed under the exception it finally raised.
On a phone, the class list sits above the log and Copy fills the width.
On a phone, the class list sits above the log and Copy fills the width.

More pictures, and how Traceback Highlighter works