How can I enable non-error server logging on MAMP (or, am I totally blind, and is it already enabled by default?)
So far, I can only find the error logs for Apache, MySQL and PHP in /Applications/MAMP/logs. But I'd like to access the server log (ie, the rawest data that the server processes, all of the HTTP requests that it received/served, etc.)
Best Answer
I found the answer here: https://documentation.mamp.info/en/MAMP-Mac/FAQ/#where-can-i-find-the-log-files
The logs need to be enabled on Apache.
In the file
/Applications/MAMP/conf/apache/https.conf
find the linesPlease uncomment this line by removing the '#', if you do it Apache will write the access logs into
/Applications/MAMP/Library/logs/access_log
.It may not be what you want, if you want to get the access logs in the same directory as the others logs (
/Applications/MAMP/logs/
) use the absolute path to the file:combined
is a log format, that you can find on a lineLogFormat
About logs, please note that you can also configure the error logs and the log level.
After doing this, restart your MAMP Apache server.