Logs
Follow live entries from the bot, the web service, and the workerBackground service that runs schedules and deliveries in the control panel, or read the same events from Docker.
Why Use the Logs Page?
- Shows each service's events in the control panel, so you don't need a terminal on the Docker host.
- Records who changed what, from sign-ins to feature saves, without ever logging a secret.
- 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, WorkerBackground service that runs schedules and deliveries — 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.

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.
generation— The revisionA counter that makes the bot reload its latest settings the event belongs to.activeFeatures— The features that started on that connection.configurationErrors— The configuration issuesWhy a feature stayed off the last time the bot connected, with the setting that failed.userIdandusername— The control panel account that made a change, including a backup import.
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 WorkerBackground service that runs schedules and deliveries 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 ViewerRead-only role: sees everything, changes nothing sees whether it's on but can't change it.
| Event | Service | When it's written |
|---|---|---|
gateway_shard_ready, gateway_shard_resumed | Bot | The 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_error | Bot | The connection to Discord dropped with Discord's close code, started over, or hit an error |
rest_rate_limited | Bot, Worker | A request to Discord hit a rate limit, with its route and how long it waits (waitMs) |
feature_handler_slow, feature_handler_failed | Bot | A feature took a second or more to handle a Discord event, or failed, with its module, event, and elapsedMs |
job_slow | Worker | A scheduled job or delivery took a second or more, with its jobType and elapsedMs |
database_query_slow | Bot, Web, Worker | A 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.
| Event | When it's written |
|---|---|
setup_completed, setup_code_rejected | The owner account was created, or someone entered a wrong or expired setup codeOne-time code from the container log that creates the Owner |
sign_in_succeeded, sign_in_failed, sign_out | Someone signed in, a sign-in failed, or someone signed out |
password_changed, username_changed | A user changed their own password or username |
totp_enabled, totp_disabled, recovery_codes_replaced | A user turned their authenticator appA phone app that makes six-digit sign-in codes on or off, or made new recovery codesA one-time backup code for when your authenticator is gone |
passkey_added, passkey_removed | A user added or removed a passkeySign in with Face ID, Touch ID, or a security key |
token_created, token_updated, token_revoked | A user created, edited, or revoked an access tokenA key that lets your scripts call the panel's API as you |
user_created, user_updated, user_deleted, user_password_reset, user_two_factor_reset | Someone changed another user on the Users page |
bot_action_requested, bot_token_saved | Someone started, stopped, or restarted the bot, or saved the Bot TokenThe bot's password for Discord, from the Developer Portal |
debug_logging_on, debug_logging_off | Someone turned Debug logging on or off |
feature_saved, feature_enabled, feature_disabled | Someone saved a feature or turned it on or off |
invite_page_saved, backup_imported | Someone saved the invite pageA public page that hands out short-lived Discord invites or completed an import from Backup |
notification_created, notification_updated, notification_removed | Someone added, edited, or removed a notification destinationOne place alerts go, such as a chat, topic, or inbox |
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 destinationOne place alerts go, such as a chat, topic, or inbox was removed or is waiting for its secrets.
Container Logs
Every service and startup helper writes one fact per plain line in this shape:
<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.
2026-01-15T18:42:07.000Z INFO bot: gateway_ready generation=3 message=Connected
Follow the lines on the Docker host.
docker logs --follow discord-stonker-bot
With Compose, run docker compose logs --follow app instead.
{"component":"bot","context":{"generation":3},"event":"gateway_stopped","level":"info","timestamp":"2026-01-01T00:00:00.000Z"}
The setup codeOne-time code from the container log that creates the Owner 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 tokenA key that lets your scripts call the panel's API as you needs the logs:read scopeWhat an access token is allowed to do.