2017 © Pedro PelĂĄez
 

yii-extension 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

image

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

  • Thursday, March 12, 2015
  • by motin
  • Repository
  • 1 Watchers
  • 2 Stars
  • 9,626 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 17 % Grown

The README.md

Yii 1 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, (*1)

Thanks to Haensel for this forum post!, (*2)

Installation

Install via composer:, (*3)

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., (*4)

Usage

Change all your existing routes that use CFileLogRoute to instead use \neam\yii_streamlog\LogRoute:, (*5)

'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., (*6)

The Versions

12/03 2015

dev-master

9999999-dev https://github.com/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

  Sources   Download

BSD-3-Clause

log stack yii docker php-fpm stdout stderr

12/03 2015

1.0.1

1.0.1.0 https://github.com/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

  Sources   Download

BSD-3-Clause

log stack yii docker php-fpm stdout stderr

12/03 2015

dev-develop

dev-develop https://github.com/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

  Sources   Download

BSD-3-Clause

log stack yii docker php-fpm stdout stderr

11/03 2015

1.0.0

1.0.0.0 https://github.com/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

  Sources   Download

BSD-3-Clause

log stack yii docker php-fpm stdout stderr