Debug

Detail for working on the code, dropped in production.

Pattern

debug.*

Written with

Intents

Levels

debug

Intents

Detail for working on the code

Recording one

Name what happened. The intent sets the level and whether it alerts.

TS
// Detail for working on the code
log('debug.trace', 'Resolved page', { slug: 'about', tookMs: 12 });
Writes, in development only (debug.trace)
TS
{
"intent": "debug.trace",
"level": "debug",
"alert": false,
"message": "Resolved page",
"data": {
"slug": "about",
"tookMs": 12
},
"time": "2026-10-09T12:00:00.000Z"
}

Is it a debug entry?

Find the row that describes your case, and use the domain on the right.

  • If the problem is

    Use

  • Who did what, kept as a record: things created, changed, deleted, and changes to access.

    audit.*
  • Signals worth watching: failed sign-ins, bad tokens, rate limits, probing.

    security.*
  • Something broke or degraded, and someone should look.

    incident.*
  • Background work: syncs, backups, migrations, scheduled runs.

    job.*
  • Detail for working on the code, dropped in production.

    debug.* this page

For registry authors

Starter intents. These are the intents prongs add logs puts in your registry. Change levels through the level.* intents, and point log() at your logger.