Lightweight structured log aggregator with pluggable backends for local dev environments.
go install github.com/yourorg/logpipe@latestOr build from source:
git clone https://github.com/yourorg/logpipe.git && cd logpipe && go build ./...Start logpipe and point your services at it:
logpipe --port 5170 --backend consoleSend structured logs from your application:
import "github.com/yourorg/logpipe/client"
logger := client.New("localhost:5170")
logger.Info("server started", client.Fields{
"port": 8080,
"env": "development",
})Available backends:
| Backend | Flag | Description |
|---|---|---|
| console | --backend console |
Pretty-prints logs to stdout |
| file | --backend file |
Writes JSON lines to a log file |
| memory | --backend memory |
Stores logs in-memory for tests |
Pipe logs from an existing process:
./my-service | logpipe --backend console| Flag | Default | Description |
|---|---|---|
--port |
5170 |
TCP port to listen on |
--backend |
console |
Output backend to use |
--format |
json |
Input log format |
MIT © yourorg