Skip to content

amish-go/LogFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogFlow

Go Version License

Collect logs from multiple files, filter by severity, and output to console or JSON.


Features

  • Collect logs from multiple sources
  • Filter by severity level (INFO, WARN, ERROR)
  • Console and JSON output
  • Simple configuration

Installation

cd logflow
go run main.go

Configuration

Edit config/config.json:

{
  "log_sources": ["app1.log", "app2.log"],
  "severity": ["INFO", "WARN", "ERROR"],
  "output_file": "aggregated_logs.json"
}

Usage

# Run
go run main.go

# Build binary
go build -o logflow main.go
./logflow

Output

  • Logs printed in console
  • Aggregated logs saved in aggregated_logs.json

License

MIT License

Contact

Email: contact.amish@yahoo.com

About

Collect logs from multiple files, filter by severity, and output to console or JSON.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages