Self-hosted remote logger for mobile apps. Live browser tail, per-device tokens, 2.5 MB image.
608
Remote log sink for mobile app developers. Your app ships logs to a server you control; you watch them stream live in a browser. Self-hosted, one static binary, ~15 MB of RAM.
Source: https://github.com/sudhi001/logger_server Demo: https://logger-server-z5w8.onrender.com
docker run -d --name logger -p 8080:8080 \
-e LOGGER_ADMIN_TOKEN=pick-a-long-random-string \
-v logger-data:/data \
sudhis/logger_server:3.2.1
Open http://localhost:8080, sign in with that token, go to Devices, and create one. Copy the token it shows you - it is displayed once - then:
curl -X POST http://localhost:8080/api/v1/logs \
-H "Authorization: Bearer <device-token>" \
-H 'content-type: application/json' \
-d '{"name":"[MyApp] ","message":"hello","level":2}'
The line appears in your browser immediately.
The volume at /data is what makes logs survive a restart. Without it the
database lives inside the container and disappears with it.
| Tag | Base | Size | Idle RSS |
|---|---|---|---|
3.2.1, latest | scratch, static musl, linux/amd64 | 5.0 MB compressed | 15.1 MB |
No OS, no shell, no package manager - nothing in the image to patch. The
trade-off is that you cannot docker exec into it; build Dockerfile.glibc
from the repo if you need a debuggable variant.
1.0.x-SNAPSHOTare the old Spring Boot / JVM builds (271 MB, ~300 MB RSS). They are kept only so existing deployments do not break. Use3.2.1.
brew install sudhi001/tap/logger-server # macOS, no Docker needed
cargo install logger_server # anywhere with a Rust toolchain
Every variable has a working default. The ones that matter:
| Variable | Default | What it does |
|---|---|---|
LOGGER_ADMIN_TOKEN | generated | Gates the dashboard and all reads. Set this. If you don't, one is generated at boot and printed to the log - usable, but it changes on every restart |
PORT / LOGGER_PORT | 8080 | Listen port. PORT is what most PaaS platforms inject |
LOGGER_DB_PATH | /data/logs.db | SQLite file |
LOGGER_TRUST_PROXY | false | Honour X-Forwarded-For. Turn on only behind a proxy that overwrites it |
LOGGER_COOKIE_SECURE | follows TRUST_PROXY | Send the session cookie with Secure. Must be off for plain-HTTP local use, or login silently fails |
LOGGER_MAX_ROWS | 1000000 | Rows kept before the oldest are pruned |
LOGGER_MAX_AGE_DAYS | 7 | Age cap before pruning |
LOGGER_RATE_LIMIT_RPS | 500 | Per-IP writes per second. 0 disables |
Full list: https://github.com/sudhi001/logger_server/blob/main/docs/configuration.md
services:
logger:
image: sudhis/logger_server:3.2.1
restart: unless-stopped
ports: ["8080:8080"]
volumes: ["logger-data:/data"]
environment:
LOGGER_ADMIN_TOKEN: ${LOGGER_ADMIN_TOKEN:?set this}
LOGGER_TRUST_PROXY: "true"
volumes:
logger-data:
Ready-to-paste loggers - buffered and batched, so you are not making one HTTP request per log line - for Kotlin, Swift, Dart, React Native, Node, Python, Go, PHP, C and C++:
https://github.com/sudhi001/logger_server/blob/main/docs/clients.md
GET /healthz - public, 200 ok, or 503 draining during shutdown. Point
your platform health check here.GET /metrics - Prometheus text, behind the admin credential.This is a breaking change. Writes now need a device token and reads need a
login. Endpoint paths are unchanged; they simply require authentication.
LOGGER_API_KEY has been removed in favour of per-device tokens.
Your database is migrated in place on first start - nothing is deleted.
https://github.com/sudhi001/logger_server/blob/main/docs/migration.md
MIT.
Content type
Image
Digest
sha256:99854d551…
Size
2.6 MB
Last updated
3 months ago
docker pull sudhis/logger_server