uuu9 / aliyun-sdk-sls
阿里云日志服务PHP SDK
README
阿里云日志服务PHP SDK
API版本
0.6.1
SDK发布时间
2018-02-18
简介
阿里云日志服务SDK(www.aliyun.com/product/sls)
摘要
$client = new Client(endpoint, accessKey, secretKey); $logItem = new LogItem(); $logItem->setTime(time()); $logItem->setContents(['apilog' => json_encode($record)]); $req = new PutLogsRequest(project, logStore, 'topic', null, [$logItem]); $client->putLogs($req);
环境要求
PHP >=7.0.12