Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to color keywords with ccze

I use ccze to colorize my log output.

The man page states:

-c, --color KEY=COLOR
    the color of the keyword KEY to COLOR,
    like one would do in one of the configuration files.

I tried several combinations to highlight the keyword "SELECT" but nothing worked. Can someone tell me how to use this option to colorize a keyword in a specific color?

like image 282
Hans-Helge Avatar asked Sep 17 '25 16:09

Hans-Helge


1 Answers

You can change only colors of keywords listed on this file:

cat /etc/cczerc

Example:

ccze -c date=yellow

like image 79
andrea689 Avatar answered Sep 19 '25 06:09

andrea689