[GH-ISSUE #245] --ui-highlight not working as I was expecting #157

Open
opened 2026-03-03 16:05:43 +03:00 by kerem · 1 comment
Owner

Originally created by @dattasaurabh82 on GitHub (Oct 9, 2021).
Original GitHub issue: https://github.com/mthenw/frontail/issues/245

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?

Originally created by @dattasaurabh82 on GitHub (Oct 9, 2021). Original GitHub issue: https://github.com/mthenw/frontail/issues/245 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](https://github.com/mthenw/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](https://user-images.githubusercontent.com/4619862/136654799-366cc2fc-7561-4bfc-8869-385f495c94e8.png) **Note:** _I'm running on macOS._ nodejs version: **v16.8.0** Any pointers ? what am I missing?
Author
Owner

@nbartels commented on GitHub (Oct 19, 2021):

Already tried both options? Enable highlighting with --ui-highlight and use the customized JSON with --ui-highlight-preset <path-to-your-json>.

<!-- gh-comment-id:946466487 --> @nbartels commented on GitHub (Oct 19, 2021): Already tried both options? Enable highlighting with `--ui-highlight` and use the customized JSON with `--ui-highlight-preset <path-to-your-json>`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#157
No description provided.