Tuesday, January 13, 2009

Tip: Log console messages in FreeBSD

If you run FreeBSD without X11 you've noticed already that messages are presented in the console. Well you can log these messages with the help of syslog.

Here's how:
  • % su
  • # touch /var/log/console.log
  • # chmod 600 /var/log/console.log
  • # vim /etc/syslog.conf
Make sure that that the console.info /var/log/console.log is uncommented.
  • # /etc/rc.d/syslogd restart
And that's it!

No comments: