GithubHelp home page GithubHelp logo

atg-log-colorizer's Introduction

Extended ATG Log Colorizer

===

An attempt at a more detailed colorizer than Kelly Goetsch's classic tool.

The goal it to highlight more than just log level : patterns like stacktraces, pipeline logs, and more

Features

  • color each type of log level
  • highlight pipeline logs : keywords, chain names, return values
  • highlight stacktraces : exceptions, class name & line number
  • highlight component names, some key atg logs (Nucleus Starting), key/value pairs (ex: order=o10000)
  • filter out elements of the logs, if one has no control over the output pattern

Examples

With solarized terminal colors

Screenshot 1

Install

npm i -g atg-color

Usage:

The atg-color command reads from the standard output and writes a colorized log

tail -f dynamo.log | atg-color

In order to use it with less, you must pass the -R flag to less, so that less applies the color codes.

cat dynamo.log | atg-color | less -R

Disclamer - Known Limitations

Functionnal

atg-color is based on a parser that must recognize the whole line pattern. Small deviations in the pattern can lead the tool to fail to recognize a line. For now the recognized patterns are limited to ones I've encountered in the projects I worked on. With time the library of patterns will grow. I also intend on making the tool customizable (pattern & color schemes) so that anyone can easily adapt it to their needs.

Performances

atg-color runs on nodejs, it's obviously slower than the original C++ tool. For now it looks fine.

Changelog

Todo

  • customizable patterns
  • customizable color scheme

[0.0.6]

Added:

  • sql block colorizing

[0.0.2]

Fixed:

  • install

[0.0.1] Initial Version

Added:

  • Level detection
  • Some basic patterns

atg-log-colorizer's People

Contributors

troussej avatar

Stargazers

Pablo Almaguer avatar Farkas Péter avatar

Watchers

James Cloos avatar  avatar

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.