dev-master
9999999-devGraylog2 log target for Yii2
The Requires
log extension yii2 graylog2 graylog gelf log target
Graylog2 log target for Yii2
php composer.phar require "welltime/graylog-target" "*"
or add, (*1)
"welltime/graylog-target" : "*"
<?php return [ ... 'components' => [ 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ 'graylog' => [ 'class' => 'welltime\graylog\GraylogTarget', 'levels' => ['error', 'warning', 'info'], 'categories' => ['application'], 'host' => '127.0.0.1', 'port' => 12201, 'source' => 'hostname', 'addCategory' => true, 'addUserId' => true, 'addLoggerId' => true, 'addFile' => true, ], ], ], ], ... ];
Graylog2 log target for Yii2
log extension yii2 graylog2 graylog gelf log target