PHP code example of vmanyushin / yii2-logzio

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

    

vmanyushin / yii2-logzio example snippets


'log'    => [
    'traceLevel'    => YII_DEBUG ? 3 : 0,
    'flushInterval' => 1,
    'targets'       => [
        [
            'exportInterval' => 1,
            'class'          => 'vman\logzio\Target',
            'levels'         => ['error', 'warning', 'info'],
            'logVars'        => [],
            'apiKey'         => 'APIKEY'
        ],
        ...