Skip to main content

Live streaming

By default, jelou functions logs streams logs in real time:
jelou functions logs my-function
# ▸ Streaming logs for my-function
# ▸ Press Ctrl+C to stop

Historical logs

jelou functions logs my-function --history

Write logs from your function

ctx.log("Processing order", { phone: input.phone, requestId: ctx.requestId });
// Writes structured JSON: { requestId, function, company, timestamp, args }
console.log() also works but ctx.log() adds useful metadata (requestId, function, company, timestamp) automatically.

Cron logs

jelou functions cron logs my-function
jelou functions cron logs my-function --state ERROR

JSON mode

jelou functions logs my-function --json
jelou functions logs my-function --history --json