welltime / graylog-target
Graylog2 log target for Yii2
Installs: 1 566
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 16
Forks: 1
Open Issues: 1
Type:yii2-extension
Requires
This package is not auto-updated.
Last update: 2024-10-26 15:51:51 UTC
README
php composer.phar require "welltime/graylog-target" "*"
or add
"welltime/graylog-target" : "*"
Usage
<?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,
],
],
],
],
...
];