The first parameter is the string to be sent to the log. The second parameter 3 means expect a file destination. The third parameter is the log file path.
'/var/tmp/errors.log': Custom log file (This path is for Linux, we can specify other depending upon OS).
print_r($v, TRUE) : logs $v (array/string/object) to log file.
FILE_APPEND: Constant parameter specifying whether to append to the file if it exists, if file does not exist, new file will be created.