Skip to content

bariscelik/logcolor

Repository files navigation

Build Status

logcolor

logcolor, or lc in short, is a very basic log viewer with colors. It works in command line and supplies elementary features to view log files. It is easy to setup and customize.

Features

  • Colorize matched texts in the log input
  • Works with pipe operator |
  • Line numbering
  • Easy usage
  • No prerequisites

Installation

Download or clone repo and enter into root folder:

mkdir build
cd build
cmake ..
make # or make install to system-wide using

Usage

Log file with default colors

foo@bar:~$ lc -f file.log

Log file with default colors

Pipe operator as input

foo@bar:~$ cat /var/log/syslog | lc

Pipe operator as input

Adding line number

foo@bar:~$ lc -l -f file.log

Adding line number

Filter results into last n lines

foo@bar:~$ lc -n 300 -f file.log # last 300 lines

License

logcolor is an open source software licensed under MIT. See the LICENSE file for more

License: MIT

Releases

No releases published

Packages

No packages published