Log Bytes Counter
log-bytes
counts the bytes from the stdout of a command, and prints the result to stdout, it is useful to measure the size of a service log.
Install
go install github.com/edmarfelipe/log-bytes@latest
Usage
<command> | log-bytes [flags]
flags:
-template string
Template to print [default, minimal] (default "default")
-unit string
Data unit to print [B, KB, MB, GB] (default "kb")
Using with default
$ server | log-bytes
Example with minimal template
$ server | log-bytes -template minimal
Example with minimal template and
$ server | log-bytes -template minimal -unit mb