grc | humanlog | |
---|---|---|
11 | 4 | |
1,814 | 683 | |
- | 0.9% | |
0.0 | 4.2 | |
14 days ago | about 1 month ago | |
Python | Go | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
grc
-
Show HN: Tailspin – A Log File Highlighter
Probably not as efficient, but I've been happily using grc [0] for the past several years. It handles simple rules quite well - beyond the basic info/debug/error coloring I use it for QOL such as different colors for even/odd timestamps and highlighting decimal places in large numbers.
[0] https://github.com/garabik/grc
-
Is there a program that formats the output of another programming using custom formatting rules?
A fairly simple program which only colorizes is grc. I wrote acolor in a similar vein, but it uses arbitrary programs/scripts instead of pure regex, and I've only written support for the programs I use, so no tcpdump. Don't use it unless you want to write your own colorizing scripts (if you do, please contribute!)
-
Is there a non-bloated way to get the terminal (xfce) to show colors for things like the prompt, files, folders, variables, and so forth?
You may want to check https://github.com/garabik/grc
- What are some CLI tools that you use that have pretty outputs?
-
Lolcat terminal help.
You'll probably appreciate grc.
-
DNS Esoterica – Why you can't dig Switzerland
There's this, which is a more modern dig, with color output, among other things: https://github.com/ogham/dog
There's also stuff like this, which will postprocess & color output from any command: https://github.com/garabik/grc, or https://github.com/armandino/TxtStyle
-
Format terminal output
I also found grc and wrote my own conf.latexmk:
-
No_color
Conversely if you want to add color to a command, I have found Generic Colorizer to be useful: https://github.com/garabik/grc
-
[Python] Parsing simple config files for a console coloriser (when this post is 30min old)
Last few streams I was working on a re-implementation of grc with more modern Python syntax and updated packaging meta-data.
- Colorized terminal
humanlog
- Show HN: Tailspin – A Log File Highlighter
-
Log: A minimal, colorful Go logging library 🪵
I also think there's a lot more that can be done if your focus is on "human readable" beyond just "logging with colors". I've played around with this myself while trying slog on for size and inspired by humanlog. Things like visually distinguishing the message, while also visually minimizing the timestamp with color and marking keyvals differently to the main message and even allowing for indentation and grouping of output are important considerations when you know you have a TTY and don't care about being machine-readable or even particularly fast. In that regard, I think that charmbracelet/log could be doing more.
- humanlog
- Ask HN: What are some tools / libraries you built yourself?
What are some alternatives?
bemenu - Dynamic menu library and client program inspired by dmenu
Pion WebRTC - Pure Go implementation of the WebRTC API
no-ansi - A single-function CLI tool to strip escape codes from input
tera - A template engine for Rust based on Jinja2/Django
no_color - Website data for no-color.org
Shynet - Modern, privacy-friendly, and detailed web analytics that works without cookies or JS.
pydflatex - Python wrapper around pdflatex
Nullboard - Nullboard is a minimalist kanban board, focused on compactness and readability.
emacs-theme-gruvbox - Gruvbox is a retro groove color scheme for Emacs. Port of the Vim version.
vaku - vaku extends the vault api & cli
TxtStyle - Command-line tool for colorizing console output and log files based on regular expressions
Tabula - Extract tables from PDF files