Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--ui-highlight not working as I was expecting #245

Open
dattasaurabh82 opened this issue Oct 9, 2021 · 1 comment
Open

--ui-highlight not working as I was expecting #245

dattasaurabh82 opened this issue Oct 9, 2021 · 1 comment

Comments

@dattasaurabh82
Copy link

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?

@nbartels
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants