GithubHelp home page GithubHelp logo

gelf-pretty's People

Contributors

joaodrp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gelf-pretty's Issues

Implement simple pretty print

Create the initial version of the pretty printer (no colors).

Format

The expected format is as follows:

[<timestamp>]  <level>: <_app>/<_logger> on <host>: <short_message> <_*>=<value>
    <full_message>

Description

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

Implement IO scanner and writer

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.

Add syslog severity level map

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

Add benchmarks

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.