For Macintosh OS X

You can read operating system error messages using the command line utility /sbin/dmesg. You can also review messages by examining the file /var/log/system.log.