Skip to content

websupport-sk/yii-stream-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii Stream Log

Log route for Yii 1 writing log messages to stdout / stderr

Installation

composer install websupport/yii-stream-log

Configuration

<?php
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',
                ),
                // ...
            ),
        ),
        // ...
    ),
);