joaodrp / gelf-pretty Goto Github PK
View Code? Open in Web Editor NEWCLI to pretty-print GELF log lines
License: MIT License
CLI to pretty-print GELF log lines
License: MIT License
Create the initial version of the pretty printer (no colors).
The expected format is as follows:
[<timestamp>] <level>: <_app>/<_logger> on <host>: <short_message> <_*>=<value>
<full_message>
timestamp
is the standard GELF unix timestamp formatted as 2006-01-02 15:04:05.000
;level
is the syslog level but in its human-readable form;_app
is an optional additional field that identifies the name of the application. If not provided the slash following it should not appear either;_logger
is an optional additional field that identifies the name of logger/module within the application;host
is the standard GELF hostname;short_message
is the standard GELF short message;<_*>=<value>
is any number of additional key/value pairs;full_message
is the standard GELF full message (usually for exception backtraces). It should be on a new line, indented with 4 spaces.Docs: https://goreleaser.com/
The starting point for this tool is writing an input scanner (stdin
) and an output writer (stdout
).
The only thing that it should do is read the input from stdin
and echo to stdout
.
This should be a map between the syslog severity levels and the corresponding human-readable levels.
Syslog severity level | Human-readable level |
---|---|
0 |
EMERGENCY |
1 |
ALERT |
2 |
CRITICAL |
3 |
ERROR |
4 |
WARNING |
5 |
NOTICE |
6 |
INFO |
7 |
DEBUG |
Here is a good example: https://github.com/goreleaser/goreleaser
We need to add some benchmarks from day one so that it's possible to test the performance evolution.
Results should probably be included in the repository.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.