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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址