frontail
frontail copied to clipboard
--ui-highlight not working as I was expecting
So may be my expectation is wrong ! 🤔
context:
logfile [ .log
] is written by python's logger and has texts like:
INFO:root:6, 7
INFO:root:delay(4000);
INFO:root:8, 9
INFO:root:0, 0
...
My test preset json file has following parameters to start with (as I just found this (amazing work BTW 🙃) and just messing around):
{
"words": {
"INFO": "color: green"
},
"lines": {
"INFO": "font-weight: bold;"
}
}
I am running frontail to watch that log file like below:
frontail --ui-hide-topbar --theme dark --ui-highlight <theme.json path> --disable-usage-stats -p 3060 <log file path>
Also tried replacing --ui-highlight
with --ui-highlight-preset
, no effect.
It still doesn't highlight the INFO string with green colour.
Note: I'm running on macOS. nodejs version: v16.8.0
Any pointers ? what am I missing?
Already tried both options? Enable highlighting with --ui-highlight
and use the customized JSON with --ui-highlight-preset <path-to-your-json>
.