https://github.com/xuoe/logwrap
Annotate and log program output
https://github.com/xuoe/logwrap
cli command logger logging
Last synced: 2 months ago
JSON representation
Annotate and log program output
- Host: GitHub
- URL: https://github.com/xuoe/logwrap
- Owner: xuoe
- License: mit
- Created: 2021-02-16T15:12:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-08T15:27:28.000Z (over 1 year ago)
- Last Synced: 2025-02-14T09:40:59.452Z (4 months ago)
- Topics: cli, command, logger, logging
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://github.com/xuoe/logwrap/actions?query=workflow:CI)
[](https://github.com/xuoe/logwrap/releases/latest)
[](CHANGELOG.md)logwrap
=======**logwrap** is a tool that annotates the output of other programs and writes the result to a rotatable logfile. It is inspired by [`rlwrap`](https://github.com/hanslub42/rlwrap), the rotation mechanism of OpenBSD's [newsyslog](https://man.openbsd.org/newsyslog.8), and tools like [`annotate-output`](https://linux.die.net/man/1/annotate-output) and [`ts`](https://linux.die.net/man/1/ts).
Installation
------------If you have Go installed, `go install github.com/xuoe/logwrap@latest` and ensure `$GOPATH/bin` is part of `$PATH`.
Otherwise, grab a binary for your platform from the [releases page](https://github.com/xuoe/logwrap/releases) and place it somewhere in `$PATH`.
Demo
----[](https://asciinema.org/a/cg6dk2eRJ9h4CBMtY1vEYgF0F)
The demo covers a lot of what `logwrap` does. For more, see `--help`, and note, in particular, the available help topics, which can be used to explore more of `logwrap`s functionality via `--help TOPIC`.
License
-------**logwrap** is released under the [MIT license](./LICENSE.md).