PHP code example of ssphp / log
1. Go to this page and download the library: Download ssphp/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/ */
ssphp / log example snippets
fig = w ssphp\Logger($config);
$result = $debug->info([
'dbType' => 'mysql',
'dsn' => 'mysql:host=sdfadfadsf.mysql.rds.aliyuncs.com:3306;dbname=temp',
'callStacks' => ['index.php line 1', 'test.php line 2'],
'query' => '',
'args' => '',
'usedTime' => '',
'error' => "connect time out",
'info' => '22'
]);
var_dump($result);