What I have to do for logging error by passbook we

2019-09-15 19:41发布

问题:

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);