I just added this line to my "/etc/syslog.conf":
to have real-time logs printed on tty12.
The only terminals I can log in are tty[1-6] + tty7 for X, but that's ok.
Well, now I'd like to have many different colors (maybe using escape sequences) for the various types of log messages (eg: all kernel messages in green, all ACPI messages in yellow, all login failures in red, and so on) directly on the tty12, but I don't know how can I do this.
I thought I could write a Bash script which reads each line added on tty12, uses grep to discover the type of message, then colors it (using echo and redirection), but I couldn't find a way to read the data printed on tty12.
these commands don't work.
I think it's very useful to have different colors instead of all-grey log messages, but what's the way to do this?
Thanks to all you people!