Laravel 8 using graylog - unicode problem

915 Views Asked by At

I need to integrate Graylog packet. I found this 'https://github.com/hedii/laravel-gelf-logger'

This is my config file

config/logging.php

'default' => 'stack',

'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['single', 'gelf'],
    ],

    'gelf' => [
        'driver' => 'custom',
        'via' => \Hedii\LaravelGelfLogger\GelfLoggerFactory::class,
        'processors' => [
            \Hedii\LaravelGelfLogger\Processors\NullStringProcessor::class,
            // another processor...
        ],
        'level' => 'debug',
        'name' => 'bms-admin',
        'system_name' => null,
        'transport' => 'udp',
        'host' => '192.168.41.112',
        'port' => '5141',
        'path' => null,
        'max_length' => null,
        'context_prefix' => null,
        'extra_prefix' => null,
    ],

    'single' => [
        'driver' => 'single',
        'path' => storage_path('logs/laravel.log'),
        'level' => 'debug',
    ],

]

When Laravel logged something, I received

Logged message

0

There are 0 best solutions below