-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
syslogs #1605
Comments
Thanks for the feedback. Can you share a specific example of a syslog which is highlighted suboptimally please and detail your expectations? :) |
For example: And this from vim PaperColor theme colorscheme: As you can see, it helps to recognize numerical values, dates and highlights failures, errors, returns, etc. I think this particular syntax highlighting is a bit excessive, but it still helps a lot to give a quick look at the log. It would be nice to have something similar, even better, not so blinding, in bat. |
After I quick look, I completely agree that the Syslog highlighting from bat was terrible 😅 Suggestions for improvements welcome. (IPv6 addresses look a little weird atm, for example.) |
That looks better. And what about the failures and errors? |
Good job! For me it's enough. Now you can take a quick look at the log, easily. Improving the default style could be the subject of another issue, if there was someone more creative or an experienced sys admin who could suggest something more objective. I just want to remind you that for some reason it doesn't recognize the |
I had noticed that previously, the syntax definition was being applied automatically for files called Edit: related: #1346 (comment) |
I have now pushed up a commit to that PR which enables highlighting of non-syslog log files :) |
Hi again. The highlighting for words |
which color scheme / theme are you using? as I mentioned in the PR, color schemes may need patching |
If there's one thing I really need bat for, it's to query logs, quickly. But it doesn't automatically recognize the syslog syntax and if I enter it manually (-m=syslog=log) it's pretty poor.
I think it is something that by default should be well polished in a tool of this kind.
The text was updated successfully, but these errors were encountered: