Bat: syslog format support

Created on 8 Jan 2019  路  5Comments  路  Source: sharkdp/bat

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.

good first issue syntax-request

Most helpful comment

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.

All 5 comments

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.

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

@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

Thanks. I will take a look at it.

I updated the syslog-syntax. #470

Was this page helpful?
0 / 5 - 0 ratings