PHP code example of jarviscdr / logc-laravel

1. Go to this page and download the library: Download jarviscdr/logc-laravel 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/ */

    

jarviscdr / logc-laravel example snippets


// 1.更新配置文件 config/logc.php

// 2.使用配套函数上报日志
logc(['err' => -1, 'data' => '订单请求异常', 'oid' => 1234567890], 'order,alipay', \Jarviscdr\LogcClient\Constant::DEBUG);