joni-jones / yii2-heroku-logger
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
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-13 19:45:45 UTC
README
Simple logger for apps which used Heroku as cloud platform.
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
-
Specify config for logging, for example:
'components' => [ 'log' => [ 'flushInterval' => 1, 'targets' => [ [ 'class' => 'jones\herokulogger\HerokuTarget', 'levels' => ['error', 'warning', 'info'], 'exportInterval' => 1, 'logVars' => [] ], ], ] ]
-
Log as usually:
Yii::error('Some message', 'app')
.
License
MIT