A tool for highlighting words in your terminal
https://user-images.githubusercontent.com/794932/122381654-d531d900-cf71-11eb-9939-06d0b9601fbb.mov
cargo install colorizer
cat server.log | colorizer --config settings.json --profile profile1
tail -f server.log | colorizer --config settings.json --profile profile1
cargo install colorizer
git clone https://github.com/kulinsky/colorizer
cd colorizer
cargo build --release
{
"default": {},
"profile1": {}
}
{
"default": {
"substrings": {
"info": "GREEN",
"debug": "BLUE",
"error": "RED"
},
"regex": {
"(\\d{4})-(\\d{2})-(\\d{2})": "PURPLE"
}
},
"profile1": {
"substrings": {
"null": "CYAN",
"time": "YELLOW",
"message": "PURPLE"
}
}
}
example is in the repository now run the application
cat server.log | colorizer --config settings.json --profile profile1