mthenw/frontail

--ui-highlight not working as I was expecting

dattasaurabh82 opened this issue · 1 comments

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.

Screenshot 2021-10-09 at 6 43 55 PM

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>.