What I have to do for logging error by passbook web service reference

百般思念 提交于 2019-12-11 19:17:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!