Blog

Reading a captured console log, and what stays internal

Where a widget report's console log shows up, what to check first, how to read each row, and why it stays with your team and out of AI drafts.

A widget report's Console tab with an ERROR row, and the report context with time, origin and browser

A report filed through the Tiqzen widget carries the page's console log. It is the closest you get to standing behind the reporter with devtools open. Here is where to find it, what to check first and how to read a row.

Find it on the ticket

Open a ticket that came in through the widget. Next to Attachments and Screen Recordings there is a Console tab with a count of messages. Below the tabs, a block called Report context (SDK) (SDK is the app's name for the widget) holds App version, Reported at, Origin, User agent and a Captured environment panel.

Both are for your team. A client user who opens the same ticket sees neither the Console tab nor the report context.

Five checks, in this order

  1. Line up the time. Reported at is the moment the report was sent. The reporter usually needed a minute or two to open the widget and describe the problem, so start with the rows from the few minutes before it.
  2. Find the first error. Later errors are often consequences of an earlier one. Scroll up past the loud ones.
  3. Read the warnings above it. A warning a moment before an error often names the cause in plain words.
  4. Compare the stack with the version. App version shows what the visitor was running only if your site puts its build version on the tag with the data-app-version attribute. Then, if App version is older than what you deployed and the stack points at code you already changed, the visitor had an old cached build. A value typed into the widget settings, or filled in from your latest release, says what you shipped, not what the visitor's browser loaded. Add a website feedback widget for bug reports with one script tag explains where the value comes from.
  5. Read the environment. The URL tells you the route and query parameters. Screen size points at mobile layouts. Language points at translations and date formats.

Here is a short invented example of how that plays out:

  • 14:02:11.204 WARN [api] /orders responded 401, refreshing token
  • 14:02:11.390 ERROR Token refresh failed: session expired
  • 14:02:12.015 ERROR Uncaught TypeError: Cannot read properties of undefined (reading 'items')

The TypeError is the last and loudest row, and the reporter's screenshot probably shows a blank orders page. The cause sits two rows higher. The session expired, the refresh failed, and the page tried to render orders it never received. So the fix belongs in the code that handles a failed refresh.

How a row reads

Each row has a time, a level badge and the message. Rows run oldest first, like devtools.

  • The time is shown in your own time zone as hours, minutes, seconds and milliseconds. Hover over it to see the exact timestamp the visitor's page recorded.
  • The level is one of LOG, INFO, WARN, ERROR or DEBUG. Error rows are tinted red and warnings amber, so problems stand out in a long list.
  • The message joins the arguments the way devtools does. An Error shows its stack, which names the file and line. An element shows as its tag, id and classes, for example <button#save.primary>. Objects are expanded two levels deep with up to 20 keys or items per level, and anything deeper shows as [Object] or [Array(12)].

Which messages are captured

The widget wraps the page's console.log, console.info, console.warn, console.error and console.debug. Your page's console keeps working exactly as before, and the widget keeps a copy. It also listens for two things that never pass through those methods:

  • Uncaught errors, stored as error rows that start with Uncaught.
  • Unhandled promise rejections, stored as error rows that start with Uncaught (in promise).

A failed image or script load is not recorded, and neither are network requests or the widget's own messages. If your app logs a failed request itself, that line is captured like any other.

Capture starts when the widget starts on the page. Anything logged before the widget script loaded is not in the list, and a full page reload starts a new one. In a single-page app the widget stays loaded while the visitor moves between views, so the log covers that whole path.

The limits

The widget keeps the last 100 messages, and each message is cut at 2,000 characters. When the list is full, it drops the oldest plain message (log, info or debug) first, so a page that logs a lot can't push out the early error that explains the bug.

"No console messages" on the Console tab means the page logged nothing between the widget starting and the report being sent.

The environment block

Captured environment shows the page URL, the referrer, the screen width and height, and the browser language. User agent is the full browser string. Origin is the hostname the report came from. If you set Allowed report domains and the report came from somewhere else, Origin says so next to the hostname.

Kept out of AI drafts

The Console tab and the report context are internal on purpose. They can hold paths, IDs and messages that make sense to developers and nobody else.

The console log is also kept away from AI. When AI drafts a widget report into a ticket, the model sees the reporter's text and the environment, and with the default prompt it uses the environment for an Environment section in the description. The console entries are never sent to it. They stay on their own tab, as captured.

Whatever your app writes to the console travels with the report, so don't log tokens, passwords or personal data in production. That is good practice anyway, and it keeps your bug reports clean.

As a rule of thumb, start at Reported at and scroll up to the earliest error of that moment. That row and the warning above it are usually where the cause is. For a refresher on the console methods themselves, MDN has a good reference for the console API.

← All posts

Start tracking bugs the modern way

Free plan includes the capture widget (100 reports a month) and MCP access. No credit card, live in minutes.