byskr/typo3-gelf-writer

Write log directly to graylog

Installs: 2 082

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

1.1.0 2018-01-16 08:39 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'
            ]
        ]
    ]
];