garabik / grc

generic colouriser
http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
Other
1.9k stars 162 forks source link

Random | All colors log colorization based on regular expression matches #224

Open JosueGauthier opened 1 year ago

JosueGauthier commented 1 year ago

Hello,

We have some log lines and we would like to colorize if it contains one case in a Regexp : For example here below I would like to color Test1 in a defined color, Test2 in another ...

13:00 Test1 ...
13:01 Test2 ...
13:02 Test34 ...

It should be will be something like this :

regexp=Test\d+
colour=RandomColors() or all

or something like this :

regexp=Algo\d+
colour=bold white,magenta,cyan,yellow

Thanks