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
- Host: GitHub
- URL: https://github.com/codecrafters-io/logstream
- Owner: codecrafters-io
- Created: 2020-01-15T12:01:03.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-12-27T06:50:01.000Z (about 1 year ago)
- Last Synced: 2025-09-29T15:44:46.076Z (4 months ago)
- Language: Go
- Homepage:
- Size: 89.8 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```