websupport/yii-stream-log

Yii log route for streams

Installs: 18 901

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 7

Forks: 0

Open Issues: 0

Type:yii-extension

v1.0 2018-11-22 12:15 UTC

This package is auto-updated.

Last update: 2024-10-23 02:58:37 UTC


README

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