All Projects → koenbollen → Jl

koenbollen / Jl

Licence: isc
jl — JSON Logs, a development tool for working with structured JSON logging.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Jl

Zoya
Truly highly composable logging utility
Stars: ✭ 116 (-40.21%)
Mutual labels:  cli, json, logging, logs
Rz Go
Ripzap - Fast and 0 allocs leveled JSON logger for Go ⚡️. Dependency free.
Stars: ✭ 256 (+31.96%)
Mutual labels:  json, logging, logs, structured-logging
Log
Structured Logging Made Easy
Stars: ✭ 350 (+80.41%)
Mutual labels:  json, logging, structured-logging
Pygogo
A Python logging library with superpowers
Stars: ✭ 265 (+36.6%)
Mutual labels:  cli, logging, structured-logging
Zerolog
Zero Allocation JSON Logger
Stars: ✭ 5,642 (+2808.25%)
Mutual labels:  json, logging, structured-logging
Cartus
A structured logging abstraction with multiple backends.
Stars: ✭ 21 (-89.18%)
Mutual labels:  logging, logs, structured-logging
Saw
Fast, multi-purpose tool for AWS CloudWatch Logs
Stars: ✭ 1,071 (+452.06%)
Mutual labels:  cli, json, logs
Structured Log
A JavaScript implementation of Serilog's hybrid text/structured logging
Stars: ✭ 133 (-31.44%)
Mutual labels:  logging, structured-logging
Bricks
A standard library for microservices.
Stars: ✭ 142 (-26.8%)
Mutual labels:  json, logging
Co
Art of C++. Flag, logging, unit-test, json, go-style coroutine and more.
Stars: ✭ 2,264 (+1067.01%)
Mutual labels:  json, logging
Logsuck
Easy log aggregation, indexing and searching
Stars: ✭ 154 (-20.62%)
Mutual labels:  logging, logs
Documentation
Stars: ✭ 133 (-31.44%)
Mutual labels:  logging, structured-logging
Oq
A performant, and portable jq wrapper to facilitate the consumption and output of formats other than JSON; using jq filters to transform the data.
Stars: ✭ 132 (-31.96%)
Mutual labels:  cli, json
Json Logging Python
Python logging library to emit JSON log that can be easily indexed and searchable by logging infrastructure such as ELK, EFK, AWS Cloudwatch, GCP Stackdriver
Stars: ✭ 143 (-26.29%)
Mutual labels:  json, logging
Jsonwatch
Track changes in JSON data from the command line
Stars: ✭ 130 (-32.99%)
Mutual labels:  cli, json
Terse Logback
Structured Logging, Tracing, and Observability with Logback
Stars: ✭ 146 (-24.74%)
Mutual labels:  json, structured-logging
Ckube
A cli to simplify working with kubectl for some common workflows
Stars: ✭ 127 (-34.54%)
Mutual labels:  cli, logs
Pathivu
An efficient log ingestion and log aggregation system https://pathivu.io/
Stars: ✭ 146 (-24.74%)
Mutual labels:  logging, logs
Timber Ruby
🌲 Great Ruby logging made easy.
Stars: ✭ 154 (-20.62%)
Mutual labels:  logging, structured-logging
Zap
Blazing fast, structured, leveled logging in Go.
Stars: ✭ 14,384 (+7314.43%)
Mutual labels:  logging, structured-logging

jl — JSON Logs

Go Report Card CircleCI

jl is a development tool for working with structured JSON logging.

Modern applications quite often use structured logging instead of simple log messages. This is preferable for computer systems but not for humans. jl will help development by translating structured message into old-fashioned log lines.

Examples

A code snippets says more than a thousand words:

$ myprogram
{"message": "Hello, world!!", "severity": "info"}
{"message": "skipping file", "severity": "warn", "file": "empty.txt"}

$ myprogram | jl
   INFO: Hello, world!!
WARNING: skipping file [file=empty.txt]

(more examples)

Installation

$ brew install koenbollen/public/jl
$ echo '{"msg": "It works!"}' | jl
It works!

Alternatively you can fetch a binary from the latest release or install the latest development version from source: go get -u github.com/koenbollen/jl

Usage

Usage:
  jl [options] [FILE...]

Options:
  -h, --help    Show this screen.
  --version     Show version.

Output Options:
  --color           Force colorized output
  --no-color        Don't colorize output
  --skip-prefix     Skip printing truncated bytes before the JSON
  --skip-suffix     Skip printing truncated bytes after the JSON

Formatting Options:
  --skip-fields     Don't output misc json keys as fields
  --include-fields  <fields>, -f <fields> Always include these json keys as fields (comma seperated list)

You can add any option to the JL_OPTS environment variable, ex:
  export JL_OPTS="--no-color"

Compatibility

jl tries to dynamically parse the lines to support as many well known formats as possible.

Is jl not compatible with your structured logging? Please let me know by creating an issue.

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].