Where is “/var/log/messages” on mac-osx

loggingmac-osx

When you read the man pages on Mac OS X, there are references to /var/log/messages, but if you look for the file, it doesn't exist:

$ ls -l /var/log/messages
ls: /var/log/messages: No such file or directory

Best Answer

If you refer to the man entry of syslog.conf, I guess the line is just an example:

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none          /var/log/messages

If you want to use that directory in your configuration, you'll have to create it.

Edit: The actual syslog.conf on Mac OS X uses the system.log file.