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.
You can use Console to view Apache log messages.
Open Console (located in /Applications/Utilities/).
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.
You can view web service logs using the command line.
To view the latest entries in a log, enter:
$ tail log-file
Replace log-file with the path of the log file.