Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Logging Errors 中,设备向 webServiceURL/version/log 发送 POST 请求,那么此时服务器需要做什么?
要将输出记录到 PHP 日志中,您可以使用以下内容:
$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);