I've been using XAMPP for Windows.
Where does PHP's error log reside in XAMPP?
I've been using XAMPP for Windows.
Where does PHP's error log reside in XAMPP?
\xampp\php\logs did not exist at all for me - for whatever reason.
I simply had to create a folder in \xampp\php\ called logs and then the php_error_log file was created and written to.
You can simply check your log path from phpMyAdmin.
Run this:
http://localhost/dashboard/
Now click PHPInfo (top right corner) or you can simply open this URL in your browser:
http://localhost/dashboard/phpinfo.php
Now search for "error_log"(without quotes). You will get the log path.
By default, the XAMPP PHP log file path is in /xampp_installation_folder/php/logs/php_error_log, but I noticed that sometimes it would not be generated automatically. Maybe it could be a Windows account write permission problem? I am not sure, but I created the logs folder and php_error_log file manually and then PHP logs were logged in it finally.
As said in previous answers, you can find the PHP error log in Windows. In C:\xampp\apache\logs\error.log. You can easily display the last logs by tail -f .\error.log.
In the current version I've just installed (8.0.11) the installer "forgets" to create the folder C:\xamppp\php\logs, perhaps by design. After creating the folder and restarting Apache the folder will be populated with a php_error.log file.
To keep seeing the last entry (much like *nix sh tail -f) use the following command:
Get-Content c:\xampp\php\logs\php_error.log -Wait
This will keep reading the file and display the last entries. Quite handy if you are debugging.