byskr/typo3-gelf-writer

Write log directly to graylog

Installs: 4 762

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Open Issues: 0

Type:typo3-cms-extension

1.1.0 2018-01-16 08:39 UTC

This package is not auto-updated.

Last update: 2024-04-24 06:11:34 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'
            ]
        ]
    ]
];