Friday, December 9, 2011

log all messages send to console

log all messages send to console

# vim /etc/syslog.conf
# uncomment this to log all writes to /dev/console to /var/log/console.log
console.info /var/log/console.log

# touch /var/log/console.log
# chmod 600 /var/log/console.log

# /etc/rc.d/syslogd restart

No comments: