https://github.com/cbuschka/go-writelog
echo -ne "line1\nline2" | writelog test.log
https://github.com/cbuschka/go-writelog
cli linux logging
Last synced: 7 months ago
JSON representation
echo -ne "line1\nline2" | writelog test.log
- Host: GitHub
- URL: https://github.com/cbuschka/go-writelog
- Owner: cbuschka
- License: mit
- Created: 2022-01-16T20:53:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-16T21:13:50.000Z (over 3 years ago)
- Last Synced: 2025-01-16T04:22:56.975Z (9 months ago)
- Topics: cli, linux, logging
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# go-writelog
### Command line tool that reads lines from stdin and writes them to a target file with timestamp prefix
## Usage
```
[conni@dudu go-writelog]$ echo -ne "line1\nline2" | writelog test.log
[conni@dudu go-writelog]$ cat test.log
2022-01-16T22:11:46 line1
2022-01-16T22:11:46 line2
```## License
Copyright (c) 2022 by [Cornelius Buschka](https://github.com/cbuschka).
[MIT](./license.txt)