Skip to content

sintanial/go-lgroute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Very simple log router

Usage

printf "[example1-key] some log message\r\n[example2-key] another message\r\n" | go run lgroute.go "[example1-key]>./example1.log" "[example2-key]>>./example2.log"

In this sample,
line with key [example1-key] piped to file example1.log with truncate file before write,
and line with key [example2-key] appends to file example2.log

Also you can pass -p arguments which run log router in parallel mode (note that in parallel mode logs order not saved)

That's it's :)

License

MIT

About

Very simple log router

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages