View web service logs

Web service uses the standard Apache log format, so you can view Web service logs using Console, command-line tools, or third-party log analysis tools.

Apache logs are located in /var/log/apache2/, which is mirrored to /Library/Logs/WebServer/. You can also view /Library/Logs/WebConfig.log.

The PostgreSQL log is /Library/Logs/PostgreSQL.log.

View web service logs in Console

You can use Console to view Apache log messages.

  1. Open Console (located in /Applications/Utilities/).

  2. Under Files, navigate to the logs to view, then click the logs to view them.

    For example, to view the Apache error log, click the disclosure triangle for /private/var/log, click the disclosure triangle for apache2, then click error_log.

View web service logs from the command line

You can view web service logs using the command line.