Skip to content

Define pigments lexer and color schema for eazyBI log files

Notifications You must be signed in to change notification settings

eazybi/log_colorizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logfile colorizer

Define Pygments lexer and color schema for eazyBI child and application log files.

Prerequisites

  • Python

  • pip (Python package manager)

    $pip -V   # check if you have it
    
    $sudo easy_install pip # install it if you don't have it
    

Set-up

  • Install Pygments package

    sudo pip install Pygments
    
  • Link .lessfilter file to your home directory

    ln -s $(pwd)/.lessfilter ~/.lessfilter
    
  • Add the following to your .bashrc or .zshrc file

    ############### for less syntax highlight ###############
    # specify options that will be passed to less
    export LESS='-R'
    # specify input preprocessor for less
    export LESSOPEN='|~/.lessfilter %s'
    
  • Install the python package contained in this repository.

    cd ../    # move up one directory from the setup.py file
    sudo pip install -e log_colorizer
    # -e option installs "in place" therefore allowing you to apply newest version by git pull
    

Additional information

You can change tokenizer and/or colors on the fly by editing __init__.py file You can use pygmentize log colorizer for other tools within shell. Main command to work with is

   pygmentize -f 256 -l loglexer -O style=logstyle -x my_file_name.log

About

Define pigments lexer and color schema for eazyBI log files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published