An open API service indexing awesome lists of open source software.

https://github.com/codecrafters-io/logstream

Stream logs to/from Redis using Redis Streams
https://github.com/codecrafters-io/logstream

Last synced: 3 months ago
JSON representation

Stream logs to/from Redis using Redis Streams

Awesome Lists containing this project

README

          

Execute a program and streams logs to Redis.

# Logstream URL

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

# Usage

Producers:

``` sh
logstream --url= run echo hey
```

Consumers:

``` sh
logstream --url= follow
```

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

To append logs but not terminate the stream:

```sh
echo "hey" | logstream --url= append
```

# Releasing

``` sh
make release
```