logspan

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

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

logspan

https://x.com/kellabyte/status/1843436926214590633

Install

go install github.com/jonjohnsonjr/logspan@latest

Usage

Use with trot or retrace.

for i in $(seq 4); do echo -n $(date) && echo -n "," && sleep $i && echo -n $(date) && echo -n "," && echo "this is log number $i"; done | logspan | trot > trace.html && open trace.html

This assumes your input is formatted as:

<start>,<end>,<text2>
<start>,<end>,<text2>

Where <start> and <end> are both in the same format as $(date) output. If that's not correct, fork it and fix it.

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