我需要做的是通过存折Web服务引用来记录错误 [英] What I have to do for logging error by passbook web service reference

查看:128
本文介绍了我需要做的是通过存折Web服务引用来记录错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在记录错误中,设备将POST请求发送到webServiceURL / version / log,那么服务器在这一点上必须做什么?

in Logging Errors, device sends POST request to webServiceURL/version/log, so what server have to do in this point ?

推荐答案

要将输出记录到PHP日志中,您可以使用以下内容:

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

这篇关于我需要做的是通过存折Web服务引用来记录错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆