What's the recommended way to write error log messages to a file from a PHP script?
One question I have is whether it's safe to use the error_log function in a PHP script that might have many simultaneously-running instances of the script that all use the same error log file. Does the error_log function do the necessary synchronization so that the error log does not become corrupted or lose log messages in this situation?