Thursday, April 22, 2010

Display log message to console with rsyslog

I like to have messages displayed on the console. All you have to do is edit you /etc/rsyslog.conf and add the following:
daemon,mail.*;\
        news.=crit;news.=err;news.=notice;\
        *.=debug;*.=info;\
        *.=notice;*.=warn       /dev/tty8
Restart rsyslogd to get your changes and activate tty8:
/etc/init.d/rsyslog restart
So now once you switch to console #8 (Alt+F8) you will see recent log messages.

No comments :

Post a Comment