This is a simple logger which stores and serves logs from local files.
- Go 1.24+
go build main.go
to compile the code and obtain a binarymain
../main
will start on port8002
by default, set the env varPORT
to change.
GET /bob_logs/{run-id}
: Sends log lines if the run exists, send follow=true to stream live changes.PUT /bob_logs/{run-id}
: Ingests log data via PUT body for a given run.DELETE /bob_logs/{run-id}
: Deletes the logs for the run.GET /ping
: Responds with anAck
.