<commit_before>Yeebase.Graylog
================

The Yeebase.Graylog Flow package logs your exceptions as well as single messages to a central Graylog server. This
package also provides a simple backend to log message of Flows Logger classes to a Graylog server.

It depends on the official GELF php package https://github.com/bzikarsky/gelf-php

Installation & configuration
------------

Just add "yeebase/graylog" as dependency to your composer.json and run a "composer update" in your project's root folder.

Configure your Graylog Server:
```yaml
Yeebase:
  Graylog:
    host: '127.0.0.1'
    port: 12201
    chunksize: 'wan'
    skipStatusCodes: [403, 404]
```


Activate the exception handler and configure the connection to your graylog server in your Settings.yaml:

```yaml
TYPO3:
  Flow:
    error:
      exceptionHandler:
        className: 'Yeebase\Graylog\Error\GraylogExceptionHandler'
```

If you wish to log normal log messages to your Graylog server just use the provided GraylogLoggerInterface:

```yaml

use TYPO3\Flow\Annotations as Flow;<commit_msg>TASK: Update Readme.md<commit_after>Yeebase.Graylog
================

The Yeebase.Graylog Flow package logs your exceptions as well as single messages to a central Graylog server. This
package also provides a simple backend to log message of Flows Logger classes to a Graylog server.

It depends on the official GELF php package https://github.com/bzikarsky/gelf-php

Installation & configuration
------------

Just add "yeebase/graylog" as dependency to your composer.json and run a "composer update" in your project's root folder.

Configure your Graylog Server:
```yaml
Yeebase:
  Graylog:
    host: '127.0.0.1'
    port: 12201
    chunksize: 'wan'
    skipStatusCodes: [403, 404]
```


Activate the exception handler and configure the connection to your graylog server in your Settings.yaml:

```yaml
Neos:
  Flow:
    error:
      exceptionHandler:
        className: 'Yeebase\Graylog\Error\GraylogExceptionHandler'
```

If you wish to log normal log messages to your Graylog server just use the provided GraylogLoggerInterface:

```yaml

use TYPO3\Flow\Annotations as Flow;
{'fraction_non_alphanumeric': 0.09302325581395349, 'fraction_numerical': 0.017209302325581394, 'mean_word_length': 4.025700934579439, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '29943', 'n_tokens_mistral': 667, 'n_tokens_neox': 615, 'n_words': 251}