PHP code example of websupport / yii-stream-log

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

    

websupport / yii-stream-log example snippets



return array(
    // ...
    'components' => array(
        // ...
        'log' => array(
            'routes' => array(
                array(
                    'class' => 'Websupport\YiiStreamLog\StreamLogRoute',
                    'levels' => 'error, warning',
                    'stream' => 'php://stderr',
                ),
                array(
                    'class' => 'Websupport\YiiStreamLog\StreamLogRoute',
                    'levels' => 'info, trace',
                    'stream' => 'php://stdout',
                ),
                // ...
            ),
        ),
        // ...
    ),
);