- Total logs
- —
- Workers
- —
- Errors
- —
- Warnings
- —
- Last log
- —
Loading… · refreshing every 5s
How to send logs from your Workers
Paste this into any Worker — it posts straight to this board.
// Add this to any Worker to send logs to this dashboard:
async function logDashboard(env, level, message, data) {
try {
await fetch(env.LOG_ENDPOINT, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ worker: "your-worker-name", level, message, data: data || {} }),
});
} catch (e) {}
}
// Usage: await logDashboard(env, "info", "User logged in", { userId: 123 });
| Timestamp | Worker | Level | Message | Status | Open |
|---|---|---|---|---|---|
| Loading logs… | |||||