log-bytes

command module
v0.0.0-...-db3d16a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 9 Imported by: 0

README

Log Bytes Counter

Go Report Card

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL