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

syslog format support #463

Closed
laoshaw opened this issue Jan 8, 2019 · 7 comments
Closed

syslog format support #463

laoshaw opened this issue Jan 8, 2019 · 7 comments
Labels

Comments

@laoshaw
Copy link

laoshaw commented Jan 8, 2019

bat will be really useful if it can view log files with highlighting, e.g. ERROR/error, WARNING/warning are in different colors(ERROR: red, WARNING: yellow) etc.

@sharkdp
Copy link
Owner

sharkdp commented Jan 8, 2019

Thank you for the feedback.

That sounds like a really cool idea! We would need to look for (or create) a Sublime Text syntax that would do the appropriate highlighting. This could then be used with bat -l log on all kinds of text files.

@caos21
Copy link
Contributor

caos21 commented Jan 16, 2019

Here you can find a sublime syntax for syslog. Maybe @ufo22940268 could help.

@sharkdp
Copy link
Owner

sharkdp commented Jan 16, 2019

@caos21 That looks good.

If someone wants to add this, please follow the steps in the README here: https://github.com/sharkdp/bat/tree/master/assets

@caos21
Copy link
Contributor

caos21 commented Jan 17, 2019

Thanks. I will take a look at it.

@caos21
Copy link
Contributor

caos21 commented Jan 17, 2019

I updated the syslog-syntax. #470

@sharkdp sharkdp closed this as completed Jan 18, 2019
@eggbean
Copy link

eggbean commented Jan 9, 2021

This doesn't seem to work for /var/log/syslog on Linux. Is there anything I could do to have warnings highlighted, as that would make viewing syslogs a lot easier?

@sharkdp
Copy link
Owner

sharkdp commented Jan 9, 2021

I think we should probably open a new issue for this. I would also love to have a better log-file highlighting. The current log syntax has a rather strict format. It would probably be better to simply highlight things like Warning, WARN, Error, ERR, etc.

@keith-hall keith-hall mentioned this issue Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants