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

Colorized output for syslog files? #3111

Open
thomas-j-adaptiva opened this issue Oct 21, 2024 · 3 comments
Open

Colorized output for syslog files? #3111

thomas-j-adaptiva opened this issue Oct 21, 2024 · 3 comments
Labels
feature-request New feature or request

Comments

@thomas-j-adaptiva
Copy link

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

image

@thomas-j-adaptiva thomas-j-adaptiva added the feature-request New feature or request label Oct 21, 2024
@keith-hall
Copy link
Collaborator

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 :)

@thomas-j-adaptiva
Copy link
Author

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!

@keith-hall
Copy link
Collaborator

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.

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

No branches or pull requests

2 participants