joni-jones/yii2-heroku-logger Simple logger implementation to works on heroku services

extensionloggerloggingheroku

Heroku Logger

Simple logger for apps which used Heroku as cloud platform.

Latest Stable Version Total Downloads License

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

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

to the require section of your composer.json file.

Usage

  1. Specify config for logging, for example:

    '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

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



Unknown license
Stats
3 github stars & 1 github forks
0 downloads in the last day
0 downloads in the last 30 days
7429 total downloads