1. Go to this page and download the library: Download qssdk/log library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
qssdk / log example snippets
use Ssdk\Oalog\Facades\Oalog;
use Ssdk\Oalog\Logger;
// 中台日志文件采集系统
Oalog::log('My logger is now ready', ['age' => 18, 'address' => '上海'], Logger::INFO);
// MySQL 日志持久化
Oalog::logMysql('My logger is now ready', ['age' => 18, 'address' => '上海'], Logger::INFO);
// 待服务端接入 - 作为中台日志文件采集系统的备胎
Oalog::logUdp('My logger is now ready', ['age' => 18, 'address' => '上海'], Logger::INFO);
//新错误异常处理, 错误异常内存溢出输出到日志文件
Oalog::registerFileLog();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.