Log

The `Log` entity.

Definition

TypeScript
interface Log {
  id: string;
  workspaceId: string | null;
  subjectId: string | null;
  level: "error" | "debug" | "info" | "warn";
  source: string;
  message: string;
  data: unknown;
  createdAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
workspaceIdstring | nullrequired — Workspace this log is scoped to; null for system logs (cron, worker boot).
subjectIdstring | nullrequired — Prefixed ID of the entity the log is about; type is derived from the prefix.
level"error" | "debug" | "info" | "warn"required — Severity level (debug, info, warn, error).
sourcestringrequired — Origin of the log (api, runner, email, ...).
messagestringrequired — Primary human-readable log message.
dataunknownrequired — Structured context attached to the log entry, if any.
createdAtstringreadonly required — ISO-8601 timestamp when the log line was recorded.