Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Colorize your /dev/tty12 syslog-ng logs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
merced
n00b
n00b


Joined: 23 Nov 2003
Posts: 24

PostPosted: Wed Sep 07, 2005 6:40 pm    Post subject: Colorize your /dev/tty12 syslog-ng logs Reply with quote

Just a quick tip. It took me a while to figure this out and seeing as I really enjoy this feature, I thought I would pass the information on.

First:
Code:
emerge ccze

Second: In the default /etc/syslog-ng/syslog-ng.conf file, find the line that says:
Code:
destination console_all { file("/dev/tty12"); };
and change it to:
Code:
destination console_all { program("ccze -r >> /dev/tty12"); };

Third: Restart syslog-ng:
Code:
/etc/init.d/syslog-ng restart
and then hit Alt+F12 and start watching your colorized logs. :D
_________________
Merced


Last edited by merced on Thu Sep 08, 2005 4:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Reikinio
Apprentice
Apprentice


Joined: 14 Aug 2005
Posts: 203
Location: Uruguay

PostPosted: Thu Sep 08, 2005 3:30 am    Post subject: Reply with quote

Nice tip, thanks for sharing :)
Back to top
View user's profile Send private message
stahlsau
Guru
Guru


Joined: 09 Jan 2004
Posts: 582
Location: WildWestwoods

PostPosted: Thu Sep 08, 2005 6:50 am    Post subject: Reply with quote

nice one. I tried it with torsmo which tails a logfile to my rootwindow, but sadly it doesn't work - torsmo doesn't seem to know how to handle those color-codes.
Back to top
View user's profile Send private message
merced
n00b
n00b


Joined: 23 Nov 2003
Posts: 24

PostPosted: Thu Sep 08, 2005 5:01 pm    Post subject: Reply with quote

stahlsau wrote:
nice one. I tried it with torsmo which tails a logfile to my rootwindow, but sadly it doesn't work - torsmo doesn't seem to know how to handle those color-codes.


Being a loghost with no X installed, I wanted to find a solution that worked without a user logged on. Hence the ccze + syslog-ng solution.
_________________
Merced
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum