All Projects → brocode → Fblog

brocode / Fblog

Licence: wtfpl
Small command-line JSON Log viewer

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Fblog

Commandtrayhost
A command line program monitor systray for Windows
Stars: ✭ 303 (+121.17%)
Mutual labels:  command-line-tool, command-line, json
Json 2 Kotlin
Convert JSON to Kotlin Data Classes
Stars: ✭ 148 (+8.03%)
Mutual labels:  command-line-tool, command-line, json
Jl
Functional sed for JSON
Stars: ✭ 449 (+227.74%)
Mutual labels:  command-line-tool, command-line, json
Tq
Perform a lookup by CSS selector on an HTML input
Stars: ✭ 193 (+40.88%)
Mutual labels:  command-line-tool, command-line, json
Jsonui
jsonui is an interactive JSON explorer on your command line
Stars: ✭ 583 (+325.55%)
Mutual labels:  command-line-tool, command-line, json
Simple Console
Add an elegant command-line interface to any page
Stars: ✭ 107 (-21.9%)
Mutual labels:  command-line, log
Yq
Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
Stars: ✭ 1,688 (+1132.12%)
Mutual labels:  command-line, json
Hmap
hmap is a command line tool written in Swift to work with Clang header maps produced by Xcode.
Stars: ✭ 110 (-19.71%)
Mutual labels:  command-line-tool, command-line
Dynein
DynamoDB CLI written in Rust.
Stars: ✭ 126 (-8.03%)
Mutual labels:  command-line-tool, command-line
Tooling
Advancing Node.js as a framework for writing great tools
Stars: ✭ 98 (-28.47%)
Mutual labels:  command-line-tool, command-line
Laravel Log Reader
A log reader and management tool for Laravel
Stars: ✭ 115 (-16.06%)
Mutual labels:  log, viewer
Git Tidy
Tidy up stale git branches.
Stars: ✭ 137 (+0%)
Mutual labels:  command-line-tool, command-line
Awesome Cli
A curated list of awesome resources for building immersive CLI experiences.
Stars: ✭ 104 (-24.09%)
Mutual labels:  command-line-tool, command-line
Csv2db
The CSV to database command line loader
Stars: ✭ 102 (-25.55%)
Mutual labels:  command-line-tool, command-line
Logger json
JSON console backend for Elixir Logger.
Stars: ✭ 108 (-21.17%)
Mutual labels:  json, log
Ask Cli
Alexa Skills Kit Command Line Interface
Stars: ✭ 100 (-27.01%)
Mutual labels:  command-line-tool, command-line
Open Log Viewer
A multi-platform log viewer built with Electron and styled with Material Design
Stars: ✭ 125 (-8.76%)
Mutual labels:  log, viewer
Check It Out
A command line interface for Git Checkout. See branches available for checkout.
Stars: ✭ 127 (-7.3%)
Mutual labels:  command-line-tool, command-line
Desktoppr
Simple command line tool to set the desktop picture on macOS
Stars: ✭ 127 (-7.3%)
Mutual labels:  command-line-tool, command-line
Asciigraph
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.
Stars: ✭ 1,805 (+1217.52%)
Mutual labels:  command-line, command-line-tool

[[./logo/fblog_small.png]]

  • fblog

    [[https://crates.io/crates/fblog][file:https://img.shields.io/crates/v/fblog.svg]] [[https://travis-ci.org/brocode/fblog][file:https://travis-ci.org/brocode/fblog.svg?branch=master]]

    A small tool to view json log files.

    [[file:demo.png]]

** Filter To filter log messages it is possible to use lua

#+BEGIN_SRC shell-script fblog -f 'level ~= "info"' # will print all message where the level is not info fblog -f 'process == "play"' # will print all message where the process is play fblog -f 'string.find(fu, "bow.*") ~= nil' # will print all messages where fu starts with bow fblog -f 'process == "play"' # will print all message where the process is play fblog -f 'process == "rust" and fu == "bower"' fblog --no-implicit-filter-return-statement -f 'if 3 > 2 then return true else return false end'

not valid lua identifiers

fblog -d -f '_G["log.level"] == "WARN"' sample_elastic.log #+END_SRC

** Customize fblog tries to detect the message, severity and timestamp of a log entry. This behavior can be customized. See --help for more information.

You can customize fblog messages: Format output: #+BEGIN_SRC shell-script fblog -p --main-line-format "{{#if short_message}}{{ red short_message }}{{/if}}" sample.json.log #+END_SRC

The following sanitized variables are provided by fblog:

  • fblog_timestamp
  • fblog_level
  • fblog_message
  • fblog_prefix

For the default formatting see --help

handlebar helpers:

  • bold
  • yellow
  • red
  • blue
  • purple
  • green
  • color_rgb 0 0 0
  • uppercase
  • level_style
  • fixed_size 10

** NO_COLOR fblog disables color output if the NO_COLOR environment variable is present.

[[https://no-color.org/][no-color]]

** Installation #+BEGIN_SRC bash cargo install fblog #+END_SRC

If you need a deb or rpm package have a look at [[https://github.com/brocode/fblog/releases][fblog releases]]

If you're lucky enough to be an arch linux user: [[https://aur.archlinux.org/packages/fblog/][AUR]]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].