K
Docs
📋

Log

base.logBase SetUtility

Writes a message to your bot's Activity log. Use info for breadcrumbs, warn for odd-but-okay moments, and error when something went wrong but you handled it in the flow. Great for debugging without spamming Discord.

When to use this
  • All levels show up in Activity — open that tab for a live feed while debugging
  • Use {{sparks}} in the message to capture live flow data
  • Chain it anywhere — it never blocks the rest of your flow

On the canvas

This is what Log looks like when you place it on your flow. Each field below is something you configure in the inspector panel.

📋
Log
base.log
Utility
messagerequired
e.g. "{{user.name}} rolled {{vars.roll}}"
level
select

Config fields

FieldTypeReqWhat it does
message
e.g. "{{user.name}} rolled {{vars.roll}}"
textareayesWhat to log 📝
levelselectSeverity

Output ports

outputMoves on after the message is recorded
📐

In TypeScript, this would be…

Not something you need to write — just a look at what Kitcord does for you.

TypeScript
// Logs a message to your bot's Activity console/log stream:
if (level === "error") {
  console.error("Roll result: 6 for CoolGamer");
} else if (level === "warn") {
  console.warn("Roll result: 6 for CoolGamer");
} else {
  console.log("Roll result: 6 for CoolGamer");
}