Skip to content

codecrafters-io/logstream

Repository files navigation

Execute a program and streams logs to Redis.

Logstream URL

A logstream URL is of the following format: <redis_uri>/<stream_id>. If a stream already exists, it'll be appended to.

Usage

Producers:

logstream --url=<logstream_url> run echo hey

Consumers:

logstream --url=<logstream_url> follow

The follow command exits with the exit code of the process.

To append logs but not terminate the stream:

echo "hey" | logstream --url=<logstream_url> append

Releasing

make release