问题
in Logging Errors, device sends POST request to webServiceURL/version/log, so what server have to do in this point ?
回答1:
To log the output to the PHP log you can use something like:
$log_items = json_decode(@file_get_contents('php://input'))->logs;
foreach($log_items as $key => $log_message)
error_log("Passbook Error Log: " . $log_message, 0);
来源:https://stackoverflow.com/questions/15828852/what-i-have-to-do-for-logging-error-by-passbook-web-service-reference