neam/yii-streamlog
最新稳定版本:1.0.1
Composer 安装命令:
composer require neam/yii-streamlog
包简介
Send Yii 1 logs to stdout/stderr - created to be used with the php-fpm/nginx Docker stack available at http://github.com/neam/docker-stack
README 文档
README
Send Yii 1 logs to stdout/stderr - created to be used with the php-fpm/nginx Docker stack available at http://github.com/neam/docker-stack
Thanks to Haensel for this forum post!
Installation
Install via composer:
composer require neam/yii-streamlog:*
Or download the extension, copy the src folder to your project and make sure to require the file LogRoute.php at some stage of application initiation.
Usage
Change all your existing routes that use CFileLogRoute to instead use \neam\yii_streamlog\LogRoute:
'components' => array(
'log' => array(
'class' => 'CLogRouter',
'routes' => array(
array(
'class' => '\neam\yii_streamlog\LogRoute',
'levels' => 'error, warning',
),
),
),
),
Also, make sure to set catch_worker_output=yes in your php-fpm pool config.
Links
统计信息
- 总下载量: 92.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-03-11