ytake / Laravel-FluentLogger

fluent logger for laravel (with Monolog handler for Fluentd)
MIT License
63 stars 23 forks source link

supported Laravel5.6 #25

Closed ytake closed 6 years ago

ytake commented 6 years ago

Changed

config/fluent.php

return [

    'host' => '127.0.0.1',

    'port' => 24224,

    /** @see https://github.com/fluent/fluent-logger-php/blob/master/src/FluentLogger.php */
    'options' => [],

    /** @see https://github.com/fluent/fluent-logger-php/blob/master/src/PackerInterface.php */
    // specified class name
    'packer' => null,

    'tagFormat' => '{{channel}}.{{level_name}}',
];

added config/logging.php

return [
    'channels' => [
        'stack' => [
            'driver'   => 'stack',
            'channels' => ['fluent'],
        ],

        'single' => [
            'driver' => 'single',
            'path'   => __DIR__ . '/../tmp/laravel.log',
            'level'  => 'debug',
        ],
        // snippet
        'fluent' => [
            'driver' => 'fluent',
            'level'  => 'debug',
        ],
    ],
];
duxthefux commented 6 years ago

@ytake Works as expected! When are you going to merge, so we can set composer version?

Thanks!

ytake commented 6 years ago

@duxthefux here! https://github.com/ytake/Laravel-FluentLogger/releases/tag/3.0.0

thanks!