byskr / typo3-gelf-writer
直接将日志写入graylog
1.1.0
2018-01-16 08:39 UTC
Requires
- graylog2/gelf-php: ^1.5
Requires (Dev)
- phpspec/prophecy: ~1.0
- phpunit/phpunit: ^5.5
Replaces
- typo3_gelf_writer: 1.1.0
This package is not auto-updated.
Last update: 2024-09-25 08:03:19 UTC
README
此日志记录器使用greylog的TCP输入
请参阅 https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Logging/Configuration/Index.html 和 http://docs.graylog.org/en/2.3/pages/gelf.html
配置
$GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'] = [
\TYPO3\CMS\Core\Log\LogLevel::ERROR => [
'Byskr\Typo3GelfWriter\Writer\GelfWriter' => [
'serverUrl' => 'your-greylog-tcp-address'
'serverPort' => 12345,
'additionalData' => [
'key': 'value'
]
]
]
];