joni-jones/yii2-heroku-logger

There is no license information available for the latest version (dev-master) of this package.

Simple logger implementation to works on heroku services

Installs: 7 708

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 2

Open Issues: 0

Type:yii2-extension

dev-master 2015-12-03 20:26 UTC

This package is not auto-updated.

Last update: 2024-12-25 20:18:46 UTC


README

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