- Collect logs from multiple sources
- Filter by severity level (INFO, WARN, ERROR)
- Console and JSON output
- Simple configuration
cd logflow
go run main.goEdit config/config.json:
{
"log_sources": ["app1.log", "app2.log"],
"severity": ["INFO", "WARN", "ERROR"],
"output_file": "aggregated_logs.json"
}# Run
go run main.go
# Build binary
go build -o logflow main.go
./logflow- Logs printed in console
- Aggregated logs saved in
aggregated_logs.json
MIT License
Email: contact.amish@yahoo.com