Skip to content

YevSent/yii2-heroku-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages