PHP code example of homevip / seaslog

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

    

homevip / seaslog example snippets


    use SeasLog;
    public function test()
    {

        $path = 'D:\SeasLog\\' . date('Y-m-d H');
        $param = [
            'id'    => mt_rand(100, 999),
            'name'  => mt_rand(100, 999),
        ];
        $param = json_encode($param, JSON_UNESCAPED_UNICODE);
        var_dump($this->set($path, $param));
    }