byskr / typo3-gelf-writer
Write log directly to graylog
Installs: 4 763
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:typo3-cms-extension
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-12-18 09:00:48 UTC
README
This Logger uses the TCP Input of greylog
see https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Logging/Configuration/Index.html and http://docs.graylog.org/en/2.3/pages/gelf.html
Configuration
$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'
]
]
]
];