PHP code example of heqiauto / json-log

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

    

heqiauto / json-log example snippets


[
    'components' => [
        'log' => [
            'targets' => [
                [
                    'class' => \heqiauto\jsonlog\FileTarget::class,
                    'levels' => ['error', 'warning', 'info'], // Without TRACE and PROFILE on production environment
                ],
            ],
        ],
    ],
]