it is a program for coloring any word in the input file displayed in your terminal
https://user-images.githubusercontent.com/794932/122374294-eaefd000-cf6a-11eb-8794-5f520c0e91b8.mov
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 | ./target/release/colorizer --config settings.json --profile profile1