How to create log file inside Project folder?

I am working PHP project on localhost using wamp, for debug process we using error_log() function, every time error_log() stored details of the error in wamp/logs, how can I view my error in the same project folder like wamp/www/goodgoal/

eg: wamp/www/goodgoal/logs/error_log.log

Note : Pls recommend PHP Quick Debug Tricks

If you look at the documentation for the PHP error_log() function you’ll see that you can direct it either to the system error logger, or to a file of your choice, which can be inside your project folder if you wish: https://www.php.net/manual/en/function.error-log.php

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.