Skip to main content

Logs

Follow live entries from the bot, the web service, and the worker in the control panel, or read the same events from Docker.

Why Use the Logs Page?

  1. Shows each service's events in the control panel, so you don't need a terminal on the Docker host.
  2. Records who changed what, from sign-ins to feature saves, without ever logging a secret.
  3. Filters by level and searches every stored entry, so you can find one failure among routine events.

Live Logs

Open Logs in the desktop sidebar or phone tab bar to see one service at a time, with the newest entry at the top.

  • Debug logging — Adds debug entries for all three services, as described in Debug Logging.
  • Bot, Web, Worker — Switches between the three services.
  • Level — Every level, Info and up, Warnings and errors, or Errors only.
  • Search events and details — Finds entries whose event name or details contain your text, among every stored entry, not just the ones on the page.
  • Pause and Resume — Stops and restarts the live updates.
  • Status — Shows Live, Connecting…, Paused, or Disconnected, and Reconnect appears when the page loses the stream.
Logs page with Debug logging off, showing the Bot service at Every level with the stream Live, a search for gateway_ready, and the gateway_ready entry open as JSON with its active features, no configuration errors, generation 1, two servers, one shard, and the bot's user tag
The Bot log with one entry open

The page loads the latest 200 entries that match, then adds new ones as the services write them, checking once a second. It keeps up to 500 entries, dropping the oldest.

Reading an Entry

Each row shows the time, the level, the event name, such as gateway_ready, and its details on one line. Select a row to see every detail, laid out as JSON.

Debug Logging

The Debug logging switch at the top of the Logs page adds debug entries for the work that most often goes wrong. Turn it on while you track down a problem, then turn it off again, because the database keeps every entry. The Web service changes right away, the Bot and the Worker within a few seconds, and the switch stays on after a restart.

Any role that can start and stop the bot can turn it. A Viewer sees whether it's on but can't change it.

EventServiceWhen it's written
gateway_shard_ready, gateway_shard_resumedBotThe connection to Discord came up, with how long the first connect took (connectMs) or how long it was down (downMs)
gateway_shard_disconnected, gateway_shard_reconnecting, gateway_shard_errorBotThe connection to Discord dropped with Discord's close code, started over, or hit an error
rest_rate_limitedBot, WorkerA request to Discord hit a rate limit, with its route and how long it waits (waitMs)
feature_handler_slow, feature_handler_failedBotA feature took a second or more to handle a Discord event, or failed, with its module, event, and elapsedMs
job_slowWorkerA scheduled job or delivery took a second or more, with its jobType and elapsedMs
database_query_slowBot, Web, WorkerA database query took a quarter second or more, with the start of its SQL as statement

debug_logging_on and debug_logging_off mark each change in all three services, and the Web entry names who made it. Routes show :id and :token in place of Discord IDs and webhook tokens, and statement never includes the values a query sends, so no debug entry holds a token or a secret.

Account and Change Events

The Web service records sign-ins and every change made in the control panel or through the API.

EventWhen it's written
setup_completed, setup_code_rejectedThe owner account was created, or someone entered a wrong or expired setup code
sign_in_succeeded, sign_in_failed, sign_outSomeone signed in, a sign-in failed, or someone signed out
password_changed, username_changedA user changed their own password or username
totp_enabled, totp_disabled, recovery_codes_replacedA user turned their authenticator app on or off, or made new recovery codes
passkey_added, passkey_removedA user added or removed a passkey
token_created, token_updated, token_revokedA user created, edited, or revoked an access token
user_created, user_updated, user_deleted, user_password_reset, user_two_factor_resetSomeone changed another user on the Users page
bot_action_requested, bot_token_savedSomeone started, stopped, or restarted the bot, or saved the Bot Token
debug_logging_on, debug_logging_offSomeone turned Debug logging on or off
feature_saved, feature_enabled, feature_disabledSomeone saved a feature or turned it on or off
invite_page_saved, backup_importedSomeone saved the invite page or completed an import from Backup
notification_created, notification_updated, notification_removedSomeone added, edited, or removed a notification destination

Each change records the user's ID and username. No entry on the Logs page holds a password, a sign-in code, a token, or a secret.

The Worker log adds notification_delivered for each alert sent and notification_skipped for an alert whose destination was removed or is waiting for its secrets.

Container Logs

Every service and startup helper writes one fact per plain line in this shape:

text
<ISO time> <LEVEL> <component>: <message>

Application events put the event name first and append their explicit details as key=value fields. They never emit JSON or multiline records to the container log. Info and debug lines use standard output; warnings and errors use standard error.

text
2026-01-15T18:42:07.000Z INFO bot: gateway_ready generation=3 message=Connected

Follow the lines on the Docker host.

bash
docker logs --follow discord-stonker-bot

With Compose, run docker compose logs --follow app instead.

One log line
json
{"component":"bot","context":{"generation":3},"event":"gateway_stopped","level":"info","timestamp":"2026-01-01T00:00:00.000Z"}

The setup code line, setup_code_issued, appears only here and never on the Logs page.

How Long Entries Last

The database keeps every entry and never deletes old ones, so the log table grows over time. Any signed-in role can read the logs, and an access token needs the logs:read scope.