Simple logger for apps which used Heroku as cloud platform.
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.
Specify config for logging, for example:
'components' => [
'log' => [
'flushInterval' => 1,
'targets' => [
[
'class' => 'jones\herokulogger\HerokuTarget',
'levels' => ['error', 'warning', 'info'],
'exportInterval' => 1,
'logVars' => []
],
],
]
]
Yii::error('Some message', 'app')
.MIT
No stable releases.
Comments