Log route for Yii 1 writing log messages to stdout / stderr
composer install websupport/yii-stream-log
<?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',
),
// ...
),
),
// ...
),
);