Crates.io | logss |
lib.rs | logss |
version | 0.0.3 |
source | src |
created_at | 2023-09-04 20:00:22.071095 |
updated_at | 2024-06-14 13:31:57.205599 |
description | A simple command line tool that helps you visualize an input stream of text. |
homepage | |
repository | https://github.com/todoesverso/logss |
max_upload_size | |
id | 963512 |
size | 140,051 |
Key Features • Usage • Installation • Download • Roadmap • License
The line matched can be replaced in the command to execute (line)
Timeout for each trigger
Configurable number of threads for each container
$ logss -h
Simple CLI command to display logs in a user-friendly way
Usage: logss [OPTIONS]
Options:
-c <CONTAINERS> Specify substrings (regex patterns)
-e Exit on empty input [default: false]
-s Start in single view mode [default: false]
-C <COMMAND> Get input from a command
-f <FILE> Input configuration file (overrides CLI arguments)
-o <OUTPUT_PATH> Specify the output path for matched patterns
-r <RENDER> Define render speed in milliseconds [default: 100]
-t <THREADS> Number of threads per container for triggers [default: 1]
-V Start in vertical view mode
-h Print help
$ cat shakespeare.txt | logss -c to -c be -c or,'echo or_found >> /tmp/or.log',1 -c 'in.*of'
$ # The containers can be a simple '-c <regex>' or '-c <regex>, <command>, <command timeout>'
$ cat real_curl_example.yaml
command:
- curl
- -s
- https://raw.githubusercontent.com/linuxacademy/content-elastic-log-samples/master/access.log
render: 75
containers:
- re: GET
trigger: echo $(date) >> /tmp/get.log
timeout: 4
- re: "404"
trigger: echo __line__ >> /tmp/404.log
timeout: 4
- ".*ERROR|error.*"
$ logss -f real_curl_example.yaml
So far only available in crates.io.
cargo install logss
If cargo is not a possibility then download pre compiled binaries from the download section.
You can install logss
from the AUR with using an AUR helper.
paru -S logss
Pre compiled binaries for several platforms can be downloaded from the release section.
This is just a personal project intended to learn Rust, so things move slowly.
This is a list of things I plan to do:
MIT