So this is my code so far:
// Send error message to the server log if error connecting to the database
date_default_timezone_set("Europe/London");
error_log("Incorrect login details have been entered by a user".PHP_EOL, 3, "logs/ErrorLogs.txt");
And it sends it to the error log like this: Error log output file
Before the message "Incorrect login..." I'd like it to show the date and time of the error.
Thank you in advance