Send log entries with a simple HTTP POST from any language or tool.
POST https://bunnylogs.com/live/<uuid>
| Parameter | Required | Description |
|---|---|---|
message |
Yes | The log message text. |
level |
No | Log level (e.g. INFO, WARN, ERROR). Defaults to INFO. |
program |
No | Name of the program or service sending the log. Defaults to api. |
timestamp |
No | ISO 8601 timestamp. Defaults to the server time at receipt. |
curl
curl -d "message=deployment finished" \
-d "level=INFO" \
-d "program=deploy-bot" \
https://bunnylogs.com/live/<uuid>
Python (requests)
import requests
requests.post(
"https://bunnylogs.com/live/<uuid>",
data={
"message": "deployment finished",
"level": "INFO",
"program": "deploy-bot",
},
)
Node.js (fetch)
await fetch("https://bunnylogs.com/live/<uuid>", {
method: "POST",
body: new URLSearchParams({
message: "deployment finished",
level: "INFO",
program: "deploy-bot",
}),
});