sharkdp/bat

Colorized output for syslog files?

Opened this issue · 3 comments

Exactly as the title says. Tested on RHEL and Ubuntu, I don't see syslogs colorized.

image

perhaps we don't have a syntax mapping by default for /var/log/dmesg. Try bat -l syslog /var/log/dmesg and see how that looks :)

That works splendidly, thank you! Sorry about that!

Also a small bug, if you do a bat -l /var/log/dmesg with no option for the -l, it just hangs.

Thank you!

Also a small bug, if you do a bat -l /var/log/dmesg with no option for the -l, it just hangs.

that's not entirely a bug :) bat is designed to behave like cat whereby if you don't specify a filename, it reads from stdin. So it is waiting for stdin to end.