2017 © Pedro Peláez
 

yii2-extension yii2-heroku-logger

Simple logger implementation to works on heroku services

image

joni-jones/yii2-heroku-logger

Simple logger implementation to works on heroku services

  • Thursday, December 3, 2015
  • by joni-jones
  • Repository
  • 1 Watchers
  • 3 Stars
  • 4,147 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 21 % Grown

The README.md

Heroku Logger

Simple logger for apps which used Heroku as cloud platform., (*1)

Latest Stable Version Total Downloads License, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist joni-jones/yii2-heroku-logger "dev-master"

or add, (*5)

"joni-jones/yii2-heroku-logger": "dev-master"

to the require section of your composer.json file., (*6)

Usage

  1. Specify config for logging, for example:, (*7)

    'components' => [
        'log' => [
            'flushInterval' => 1,
            'targets' => [
                [
                    'class' => 'jones\herokulogger\HerokuTarget',
                    'levels' => ['error', 'warning', 'info'],
                    'exportInterval' => 1,
                    'logVars' => []
                ],
            ],
        ]
    ]
    
  2. Log as usually: Yii::error('Some message', 'app').

License

MIT, (*8)

The Versions

03/12 2015

dev-master

9999999-dev

Simple logger implementation to works on heroku services

  Sources   Download

The Requires

 

by Ievgen Sentiabov

logger extension logging yii2 heroku